|
||
|
|||||||
| General Discussion General discussion for the RunUO community, all off-topic posts will be deleted. This forum is NOT FOR SUPPORT! |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Hi, i have two question:
1) When i compile a script the RunUo says me " - Warning: Scripts\Engines\Classes\ClassSystem.cs: CS0162: (line 236, column 6) Unreachable code detected". Is a warning, but someone can explain me what is the trouble? 2) I have implemented a race system on my shard. I want to ask you how i can set a strCap, dexCap and intCap in my system. There is a specific function recall? Or i must do the function manually (how?)? Thanks very much bye |
|
|
|
|
|
|
#3 (permalink) |
|
Join Date: Oct 2003
Posts: 222
|
Without seeing the code, I can't say exactly what your problem is, but a misplaced return can cause a warning like that.
For example, in this dummy method: Code:
public static void SomeMethod()
{
if( varA == varB )
{
DoThis();
}
return; // Misplaced return that would cause a warning
if( varC == varD )
{
DoThat();
}
if( varE == varF )
{
DoThisAndThat();
}
}
Code:
if( varC == varD )
{
DoThat();
}
if( varE == varF )
{
DoThisAndThat();
}
|
|
|
|
|
|
#4 (permalink) |
|
Forum Expert
Join Date: Jan 2004
Posts: 1,377
|
1) Warning should be taken seriously. However in this case you can just dismiss it, as Phantom said. I suppose you are using TheOutKastDev's Race/Class script?
2) Look here and here. This has already been scripted.
__________________
Dracarys retired - consider me dead to these boards |
|
|
|
|
|
#5 (permalink) | ||
|
Also look here. This is 2 pages explaning about errors and if they are important or not. This should answer a lot of people questions.
__________________
Quote:
Quote:
My Website |
|||
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|