Tag Mistake
#1

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

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

I know but A playerid should be defined...
Reply
#4

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

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)