[HELP] Whats wrong?
#1

I got a code that makes you lose wanted level but I got errors
Код:
	public PayHour()
	{
	for(new i =0; i < MAX_PLAYERS; i++)
	{
		if(IsPlayerConnected(i)) {
		  if (GetPlayerWantedLevel(i) >=1) {
			SetPlayerWantedLevel(i, GetPlayerWantedLevel(i) - 1;
			SendClientMessage(i, 0xFFFF00FF, "[Wanted] You lost 1 wanted level");
			}
		else {
			return 1;
			}
	}
	}
And errors
Код:
C:\Counter-Strike 2D\BlueberryFR\gamemodes\SFFreeroam3.0.pwn(608) : warning 235: public function lacks forward declaration (symbol "PayHour")
C:\Counter-Strike 2D\BlueberryFR\gamemodes\SFFreeroam3.0.pwn(614) : error 001: expected token: ",", but found ";"
C:\Counter-Strike 2D\BlueberryFR\gamemodes\SFFreeroam3.0.pwn(622) : error 030: compound statement not closed at the end of file (started at line 610)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Reply


Messages In This Thread
[HELP] Whats wrong? - by Thrarod - 01.04.2010, 21:58
Re: [HELP] Whats wrong? - by Thrarod - 01.04.2010, 22:01
Re: [HELP] Whats wrong? - by Micko9 - 01.04.2010, 22:05
Re: [HELP] Whats wrong? - by aircombat - 01.04.2010, 22:39
Re: [HELP] Whats wrong? - by Whitetiger - 01.04.2010, 23:19
Re: [HELP] Whats wrong? - by Thrarod - 02.04.2010, 07:16

Forum Jump:


Users browsing this thread: 3 Guest(s)