[Help] 4 warnings at compilin (please help).
#1

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.

Reply
#2

The 3 warnings say everything. The warning of OnPlayerUpdate might be because you did not forward it.
Reply
#3

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.
Reply
#4

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?

Reply
#5

You create 3 variables with the same name, change the name of the variable. You can't have variables with the same name.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)