SA-MP Forums Archive
Tag Mistake - 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: Tag Mistake (/showthread.php?tid=575473)



Tag Mistake - Teemo - 27.05.2015

pawn Код:
if(clickedid == RegisterText[playerid])
What's the error in this line?


Re: Tag Mistake - Phuong - 27.05.2015

public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(clickedid == gTextDraw)
{
SendClientMessage(playerid, 0xFFFFFFAA, "You clicked on a textdraw.");
CancelSelectTextDraw(playerid);
}
return 1;
}


Re: Tag Mistake - Teemo - 27.05.2015

I know but A playerid should be defined...


Re: Tag Mistake - Vince - 27.05.2015

RegisterText either has no tag, or it is a PlayerText and in that case you must use OnPlayerClickPlayerTextDraw.


Re: Tag Mistake - JaKe Elite - 27.05.2015

Have you make sure that it was

PHP код:
new Text:RegisterText[MAX_PLAYERS]; 
Otherwise, state your error ~ instead of telling us and making us think what is your error.