SA-MP Forums Archive
Help for 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: Help for warnings.. (/showthread.php?tid=299681)



Help for warnings.. - dundolina - 27.11.2011

C:\Users\ники\Desktop\LV mod + gangs original R5 junk 2011 nai-originalniq ot vsichki\LV mod + gangs original\samp 0.3c server\gamemodes\gangwars.pwn(7777) : warning 219: local variable "ip" shadows a variable at a preceding level
C:\Users\ники\Desktop\LV mod + gangs original R5 junk 2011 nai-originalniq ot vsichki\LV mod + gangs original\samp 0.3c server\gamemodes\gangwars.pwn(998 : warning 219: local variable "ip" shadows a variable at a preceding level
C:\Users\ники\Desktop\LV mod + gangs original R5 junk 2011 nai-originalniq ot vsichki\LV mod + gangs original\samp 0.3c server\gamemodes\gangwars.pwn(11044) : warning 219: local variable "pname" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Warnings.

----------------------------------------------------------------------------------------------------------------

How to fix ?


Re: Help for warnings.. - Dolby - 27.11.2011

probably you have one stock,public...that uses this names.


Re: Help for warnings.. - Da' J' - 27.11.2011

But it shouldn't harm your script in any way? I usually just leave the warnings to come, or just delete the lines/part of code where does the warning go.


Re: Help for warnings.. - Tanush123 - 27.11.2011

Well if you have no warning it would be good because your script will look good, for the first 2 warning you will see
pawn Код:
new ip
on that line so you remove those lines and for the last one you will see
pawn Код:
new pname;
so remove that line