SA-MP Forums Archive
Why does this only work for playerid 0? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Why does this only work for playerid 0? (/showthread.php?tid=186738)



Why does this only work for playerid 0? - Marshall_Banks - 30.10.2010

Код:
TextDrawShowForPlayer(killerid, pointsTextDraw);
	SetTimer("points",2000,false);
]

Код:
public points(playerid)
{

    TextDrawHideForPlayer(playerid, pointsTextDraw);
}
The text draw appears but it only dissapears if your id is 0. any help?


Re: Why does this only work for playerid 0? - Kyle - 30.10.2010

Insted do this, Replace the timer with this

SetTimerEx("points", 2000, false, "i", playerid);


Re: Why does this only work for playerid 0? - Marshall_Banks - 30.10.2010

It stopped working for player id 0 to.


Re: Why does this only work for playerid 0? - Shubham - 30.10.2010

Use this:

SetTimerEx("points", 2000, false, "i", killerid);