Problem with a timer - playerid not defined.
#2

public aduty()

There's your answer, it doesn't have a playerid variable defined in it nor anywhere in the callback.

It can be fixed like so:

pawn Код:
SetTimerEx("aduty",2000,false,"i",playerid);
pawn Код:
public aduty(playerid)
{
    SetPlayerColor(playerid, 0xE60000FF);
}
pawn Код:
forward aduty(playerid);
Reply


Messages In This Thread
Problem with a timer - playerid not defined. - by Striker_Moe - 31.08.2009, 20:14
Re: Problem with a timer - playerid not defined. - by JaTochNietDan - 31.08.2009, 20:16
Re: Problem with a timer - playerid not defined. - by JR ! - 31.08.2009, 20:17
Re: Problem with a timer - playerid not defined. - by JaTochNietDan - 31.08.2009, 20:18

Forum Jump:


Users browsing this thread: 2 Guest(s)