There is an error in the goto compiling.
Lets say we have this code:
If the code segment is loaded more than one time (like in a dialog, which is loaded every time yo click the NPC) the compiler produces "duplicated label" errors after the first time you load the code.
The code works as intended every time, but the compiler sends the messages to the error file.
The point is that while the behaviour is not a big concern itself, the error log is poluted enough: sending more error messages to it make things still more obscure, so it is better not to use "goto" at all.
Cheers.
buho (A).
Lets say we have this code:
Code:
if (SomeError)
{
DoSomething;
goto ErrorHandling;
}
//
//
//
ErrorHandling: // <--------
//
//
If the code segment is loaded more than one time (like in a dialog, which is loaded every time yo click the NPC) the compiler produces "duplicated label" errors after the first time you load the code.
The code works as intended every time, but the compiler sends the messages to the error file.
The point is that while the behaviour is not a big concern itself, the error log is poluted enough: sending more error messages to it make things still more obscure, so it is better not to use "goto" at all.
Cheers.
buho (A).