[HELP] Whats wrong?
#1

I made a wanted level color script for my CnR but Im new at scripting, whats wrong here?
Код:
public OnPlayerUpdate(playerid)
{
	new wantedlevel;
 	wantedlevel = GetPlayerWantedLevel(playerid);
	if wantedlevel =< 2 SetPlayerColor(COLOR_LIGHTRED);
	if wantedlevel => 3 SetPlayerColor(COLOR_RED);
	return 1;
}
And I get those errors
Код:
C:\Counter-Strike 2D\SampSrv\gamemodes\CnRTest.pwn(222) : warning 211: possibly unintended assignment
C:\Counter-Strike 2D\SampSrv\gamemodes\CnRTest.pwn(222) : error 029: invalid expression, assumed zero
C:\Counter-Strike 2D\SampSrv\gamemodes\CnRTest.pwn(222) : warning 215: expression has no effect
C:\Counter-Strike 2D\SampSrv\gamemodes\CnRTest.pwn(222) : error 001: expected token: ";", but found "-identifier-"
C:\Counter-Strike 2D\SampSrv\gamemodes\CnRTest.pwn(222) : warning 202: number of arguments does not match definition
C:\Counter-Strike 2D\SampSrv\gamemodes\CnRTest.pwn(223) : warning 211: possibly unintended assignment
C:\Counter-Strike 2D\SampSrv\gamemodes\CnRTest.pwn(223) : error 029: invalid expression, assumed zero
C:\Counter-Strike 2D\SampSrv\gamemodes\CnRTest.pwn(223) : warning 215: expression has no effect
C:\Counter-Strike 2D\SampSrv\gamemodes\CnRTest.pwn(223) : error 001: expected token: ";", but found "-identifier-"
C:\Counter-Strike 2D\SampSrv\gamemodes\CnRTest.pwn(223) : warning 202: number of arguments does not match definition
C:\Counter-Strike 2D\SampSrv\gamemodes\CnRTest.pwn(223) : warning 204: symbol is assigned a value that is never used: "wantedlevel"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Please help
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)