24.11.2010, 14:39
Wondering if such a function exists or is possible to create.
The idea is to output the script line where the code is for debugging purposes.
Also wondering if it's possible to assign it as a function parameter default value. Something like this:
The idea is to output the script line where the code is for debugging purposes.
Also wondering if it's possible to assign it as a function parameter default value. Something like this:
pawn Код:
public Function(someID, someString[], LineCalled = GetScriptLine())
{
if( Some_error == true )
{
printf("Error occured with function "Function"; Called from line %i", LineCalled);
}
else return ProceedNormally();
}