SA-MP Forums Archive
Utils.inc ......... - 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: Utils.inc ......... (/showthread.php?tid=100103)



Utils.inc ......... - Jofi - 02.10.2009


I can Compile script and it works but everytime im getting this annoying warn >.<

Код:
.....\pawno\include\utils.inc(256) : warning 219: local variable "playerid" shadows a variable at a preceding level
Line 256:

Код:
foreach (player,playerid)



Re: Utils.inc ......... - Pawno_Master - 02.10.2009

i think player overshadows playid just use playerid i think but to be sure i need more code


Re: Utils.inc ......... - Hiitch - 02.10.2009

the variable playerid was defined as a variable more than two times, search for it and remove it.

for instance. if you have new playerid;

and you have another new playerid;

this will be considered shadowing, because you have two of the same ones.

but for your problem, make sure you see the foreach code, and see how it is used.