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

PHP код:
 CMD:togmarks(playeridparams[]){
markers 0;
for(new 
0i<=MAX_PLAYERS;i++)
{
new 
PlayerColor GetPlayerColor(i);
if(
PlayerColor == 0xFFFFFF00 && markers 1)
{
SetPlayerColor(iServerColors[random(20)]);
}
else if(
PlayerColor[i] != 0xFFFFFF00){
SetPlayerColor(i,PlayerColor);
}
markers 1;
}
//FOR END HERE//
SendClientMessage(playerid0x33AA33AA,"Poof! you can see em' all!!");
return 
1;

PlayerColor is a variable and not an array. You can't you use it like that. Try this. Also, Could you explain what this command does so that We can fix this?
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: 1 Guest(s)