01.04.2010, 21:58
I got a code that makes you lose wanted level but I got errors
And 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; } } }
Код:
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.