SA-MP Forums Archive
undefined symbol "playerid" - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: undefined symbol "playerid" (/showthread.php?tid=307358)



undefined symbol "playerid" - SnG.Scot_MisCuDI - 30.12.2011

Fixed. Sorry about useless post.


Re: undefined symbol "playerid" - kubz777 - 26.03.2012

How did you fix please?


Re: undefined symbol "playerid" - [HiC]TheKiller - 26.03.2012

Quote:
Originally Posted by kubz777
Посмотреть сообщение
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:

pawn Код:
//Some place in your script
SetTimerEx("callback", 1000, false, "d", playerid);
//--------------------------

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