PDA

View Full Version : undefined symbol "playerid"


SnG.Scot_MisCuDI
30/12/2011, 08:54 AM
Fixed. Sorry about useless post.

kubz777
26/03/2012, 05:44 AM
How did you fix please?

[HiC]TheKiller
26/03/2012, 06:11 AM
How did you fix please?

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:


//Some place in your script
SetTimerEx("callback", 1000, false, "d", playerid);
//--------------------------

forward callback(playerid);
public callback(playerid)
{
//Your code
}