03.12.2010, 03:20
Ok im trying to make wanted levels decrease every 4 mins from level 9 to 0 and im trying to do it without someone showing me xD
But im getting a error:
Now im not even sure if this is the right way to do this but i thought about it and it looks like it could work.
Can someone 1st help me with the error and if i am doing it wrong state what im doing wrong please
And ive started on 9 to 8 the other timers are just there cause it compiles regardless
Heres the code:
I commented the line with the error line 22
Thanks in advanced!
But im getting a error:
Код:
C:\Users\Weponz\Desktop\Server Files\gamemodes\TESTING.pwn(22) : error 036: empty statement Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
Can someone 1st help me with the error and if i am doing it wrong state what im doing wrong please
And ive started on 9 to 8 the other timers are just there cause it compiles regardless
Heres the code:
pawn Код:
#include <a_samp>
public OnGameModeInit()
{
SetTimer("wanted9to8",240000,false);
SetTimer("wanted8to7",240000,false);
SetTimer("wanted7to6",240000,false);
SetTimer("wanted6to5",240000,false);
SetTimer("wanted5to4",240000,false);
SetTimer("wanted4to3",240000,false);
SetTimer("wanted3to2",240000,false);
SetTimer("wanted2to1",240000,false);
SetTimer("wanted1to0",240000,false);
return 1;
}
forward wanted9to8(playerid);
public wanted9to8(playerid)
{
GetPlayerWantedLevel(playerid);
if(GetPlayerWantedLevel(playerid) == 9);//Line 22
SetPlayerWantedLevel(playerid, 8);
SendClientMessage(playerid, 0x0,"[WANTED] You Have Lost A Wanted Level![Level 8]");
return 1;
}
Thanks in advanced!