Wanted level timers
#4

Код:
forward Timer(playerid);

public OnPlayerDeath(playerid, killerid, reason)
{
    if(GetPlayerTeam(killerid) == TEAM_GANG)
    {
        SendClientMessage(killerid, -1, "You have killed someone you may get caught by the police");
        SetTimerEx("Timer",30000,0,"d",killerid);
    }
    return 1;
}

public Timer(playerid)
{
    switch(random(3))
    {
		SetPlayerWantedLevel(playerid, 0);
 		SetPlayerWantedLevel(playerid, 1);
  		SetPlayerWantedLevel(playerid, 2);
  	}
}
(86) : error 002: only a single statement (or expression) can follow each "case"
(86) : warning 215: expression has no effect
(90) : error 054: unmatched closing brace ("}")

What is wrong here?


Sorry fixed lol
Reply


Messages In This Thread
Wanted level timers - by muhib777 - 11.08.2011, 17:21
Re: Wanted level timers - by Ruffles. - 11.08.2011, 17:30
Re: Wanted level timers - by Cypress - 11.08.2011, 17:31
Re: Wanted level timers - by muhib777 - 11.08.2011, 18:08

Forum Jump:


Users browsing this thread: 1 Guest(s)