26.03.2012, 05:11
Lovely bump .
Anyway, to answer your question, you just put the code under a callback that has playerid as one of the arguments. The most common mistake is that people try use playerid with SetTimer which will not work. If this is what you are doing, try this:
Anyway, to answer your question, you just put the code under a callback that has playerid as one of the arguments. The most common mistake is that people try use playerid with SetTimer which will not work. If this is what you are doing, try this:
pawn Код:
//Some place in your script
SetTimerEx("callback", 1000, false, "d", playerid);
//--------------------------
forward callback(playerid);
public callback(playerid)
{
//Your code
}