Weird Pawn Problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Weird Pawn Problem (
/showthread.php?tid=256113)
Weird Pawn Problem -
DerrydBrincat - 19.05.2011
Usually pawn would say, 'You have not defined the variable 'string' on line blah blah', but it doesn't, it ignores when I haven't defined a variable and when someone types a command where string is not defined (a format function to say the player has been jailed for %d seconds) the server crashes.
Re: Weird Pawn Problem -
DerrydBrincat - 20.05.2011
Well, I defined a global string variable for OnPlayerCommandText, so I shouldn't need to define it again for every command, but I do. The PAWN compiler ignores if I haven't defined string.