12.03.2010, 16:39
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 Код:
pawn Код:
|
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; } |
https://sampwiki.blast.hk/wiki/Scripting:tags#Operators