Error, please look - 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: Error, please look (
/showthread.php?tid=180535)
Error, please look -
Tekto - 01.10.2010
Код:
J:\\.pwn(1382) : warning 219: local variable "i" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
Line 1382:
Код:
for(new i = 0; i < MAX_PLAYERS; i++)
Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
TextDrawShowForPlayer(i, Text:Clock[i]);
}
Re: Error, please look -
SAW-RL - 01.10.2010
ITs only a warning...
change the try this:
for(new i = 0; i < MAX_PLAYERS; i++)
{
TextDrawShowForPlayer(playerid, Text:Clock[i]);
}
Re: Error, please look -
Tekto - 01.10.2010
Warning is like error for me
I like when my gamemode is clear , no errors/warnings.
But like I see, you didnt change the code ?
Re: Error, please look -
Tekto - 01.10.2010
Anyways, fixed it.
Re: Error, please look -
SAW-RL - 01.10.2010
ofcourse i changed the code, i replaced the "i" with "playerid".
But you fixxed it already, good
Re: Error, please look -
Tekto - 01.10.2010
Oh I see
Yea , thanks anyways.