[Help] 4 warnings at compilin (please help). - 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: [Help] 4 warnings at compilin (please help). (
/showthread.php?tid=101552)
[Help] 4 warnings at compilin (please help). -
-PunisheR- - 11.10.2009
Hello scripters,
i have a 4 compiling warning at my mode, and i'm very upset because i can't fix them alone.
so some one can help me?
F5/F6:
Код:
D:\02X\gamemodes\GameMode.pwn(11566) : warning 219: local variable "id" shadows a variable at a preceding level
D:\02X\gamemodes\GameMode.pwn(14307) : warning 235: public function lacks forward declaration (symbol "OnPlayerUpdate")
D:\02X\gamemodes\GameMode.pwn(14799) : warning 219: local variable "id" shadows a variable at a preceding level
D:\02X\gamemodes\GameMode.pwn(14831) : warning 219: local variable "id" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Warnings.
Line 11566:
Код:
for(new id; id<MAX_PROPERTIES; id++)
Line 14307:
Код:
public OnPlayerUpdate(playerid)
Line 14799:
Код:
for(new id; id<PropertiesAmount; id++)
Line 14831:
Код:
for(new id; id<PropertiesAmount; id++)
How can i fix them?
please help !
thank you.
Re: [Help] 4 warnings at compilin (please help). -
MenaceX^ - 11.10.2009
The 3 warnings say everything. The warning of OnPlayerUpdate might be because you did not forward it.
Re: [Help] 4 warnings at compilin (please help). -
Correlli - 11.10.2009
Quote:
Originally Posted by MenaceX^
The 3 warnings say everything. The warning of OnPlayerUpdate might be because you did not forward it.
|
OnPlayerUpdate should be already forwarded in the a_samp.inc file.
Re: [Help] 4 warnings at compilin (please help). -
-PunisheR- - 11.10.2009
MenaceX:
The "OnPlayerUpdate" warning, is solved !
thanks you
.
and i didn't get it, what do you mean about the 3 warnings about the "id" ?
some help?
Re: [Help] 4 warnings at compilin (please help). -
Marcel - 11.10.2009
You create 3 variables with the same name, change the name of the variable. You can't have variables with the same name.