Issue, with if and for, help me please!
#1

Код:
markers = 0;
 CMD:togmarks(playerid, params[]){
for(new i = 0; i<=MAX_PLAYERS;i++)
{
new PlayerColor = GetPlayerColor(playerid);
/*(line 1363)*/ if(PlayerColor == 0xFFFFFF00 && markers = 1)
{
SetPlayerColor(i, ServerColors[random(20)]);

}
else if(PlayerColor != 0xFFFFFF00){
SetPlayerColor(i,PlayerColor);

}
markers = 1;
}
//FOR END HERE//
SendClientMessage(playerid, 0x33AA33AA,"Poof! you can see em' all!!");
return 1;

}
ERRORS:
Код:
C:\Servers\racing_samp\gamemodes\race.pwn(1358) : error 010: invalid function or declaration
C:\Servers\racing_samp\gamemodes\race.pwn(1363) : warning 211: possibly unintended assignment
C:\Servers\racing_samp\gamemodes\race.pwn(1363) : error 022: must be lvalue (non-constant)
C:\Servers\racing_samp\gamemodes\race.pwn(1363) : warning 215: expression has no effect
C:\Servers\racing_samp\gamemodes\race.pwn(1363) : error 001: expected token: ";", but found ")"
C:\Servers\racing_samp\gamemodes\race.pwn(1363) : error 029: invalid expression, assumed zero
C:\Servers\racing_samp\gamemodes\race.pwn(1363) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.
Help please!
Reply


Messages In This Thread
Issue, with if and for, help me please! - by XpoZzA - 11.04.2017, 10:46
Re: Issue, with if and for, help me please! - by jasperschellekens - 11.04.2017, 11:11
Re: Issue, with if and for, help me please! - by XpoZzA - 11.04.2017, 12:21
Re: Issue, with if and for, help me please! - by Sew_Sumi - 11.04.2017, 14:26
Re: Issue, with if and for, help me please! - by XpoZzA - 11.04.2017, 14:31
Re: Issue, with if and for, help me please! - by DarkSkull - 11.04.2017, 14:33
Re: Issue, with if and for, help me please! - by DarkSkull - 11.04.2017, 14:37
Re: Issue, with if and for, help me please! - by Sew_Sumi - 11.04.2017, 14:43

Forum Jump:


Users browsing this thread: 3 Guest(s)