[HELP] Whats wrong?
#8

Quote:
Originally Posted by [NT
Extremo ]
Thats because both of them forgot to actually include an ID.

SetPlayerColor(Color) is what they did, so where is the actual PLAYER-SELECTION.

Just ex-change the
pawn Код:
SetPlayerColor(COLOR);
with:
pawn Код:
SetPlayerColor(playerid, COLOR);
and it should work fine.
and that

Quote:
Originally Posted by ¤Adas¤
It must be: >= and <=
Quote:
Originally Posted by [AC
Etch ]
here is the right code
Код:
public OnPlayerUpdate(playerid)
{
    new wantedlevel;
    wantedlevel = GetPlayerWantedLevel(playerid);
    if(wantedlevel =< 2) 
    { 
    SetPlayerColor(COLOR_LIGHTRED);
    }
    else if(wantedlevel => 3)
    { 
    SetPlayerColor(COLOR_RED);
    }
   return 1;
}
so still wrong

https://sampwiki.blast.hk/wiki/Scripting:tags#Operators
Reply


Messages In This Thread
[HELP] Whats wrong? - by Thrarod - 12.03.2010, 15:11
Re: [HELP] Whats wrong? - by Thrarod - 12.03.2010, 15:24
Re: [HELP] Whats wrong? - by Jeffry - 12.03.2010, 15:31
Re: [HELP] Whats wrong? - by ¤Adas¤ - 12.03.2010, 15:31
Re: [HELP] Whats wrong? - by aircombat - 12.03.2010, 15:48
Re: [HELP] Whats wrong? - by Thrarod - 12.03.2010, 16:37
Re: [HELP] Whats wrong? - by Extremo - 12.03.2010, 16:39
Re: [HELP] Whats wrong? - by adsy - 12.03.2010, 16:39
Re: [HELP] Whats wrong? - by Extremo - 12.03.2010, 16:44

Forum Jump:


Users browsing this thread: 2 Guest(s)