SA-MP Forums Archive
2 warnings - 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)
+--- Thread: 2 warnings (/showthread.php?tid=300704)



2 warnings - PlayHard - 01.12.2011

pawn Код:
C:\Users\PC\Desktop\Unused Items\server\gamemodes\gm.pwn(186) : warning 219: local variable "s1" shadows a variable at a preceding level
C:\Users\PC\Desktop\Unused Items\server\gamemodes\gm.pwn(187) : warning 219: local variable "s2" shadows a variable at a preceding level
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Warnings.
new s1 = 1;
new s2 = 0;


Re: 2 warnings - Kostas' - 01.12.2011

Show us the code, else if we cannot do anything about your warnings.


Re: 2 warnings - park4bmx - 01.12.2011

you have defined that variable somewhere else in your script just change that two
ss1 and ss2 or anything else.


Re: 2 warnings - PlayHard - 01.12.2011

Thank you Park4bmx!