20.04.2010, 15:11
I have noticed people do this a lot in their scripting...
Instead of doing this:
Every time I add
to the beginning of the script line, I get errors such as:
Why?
pawn Код:
new LSPDJail = CreateDynamicObject(971, 266.30337524414, 92.817451477051, 1002.5568237305, 0.000000, 0.000000, 270.27026367188,-1,-1,-1,200); //
pawn Код:
new LSPDJail; (TOP OF SCRIPT)
LSPDJail = CreateDynamicObject(971, 266.30337524414, 92.817451477051, 1002.5568237305, 0.000000, 0.000000, 270.27026367188,-1,-1,-1,200); (UNDER OnGameModeInit())
pawn Код:
new
Код:
C:\CnR SA-MP Server\gamemodes\CnR.pwn(31) : warning 204: symbol is assigned a value that is never used: "LSPDJail" C:\CnR SA-MP Server\gamemodes\CnR.pwn(115) : error 017: undefined symbol "LSPDJail" C:\CnR SA-MP Server\gamemodes\CnR.pwn(120) : error 017: undefined symbol "LSPDJail" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.