Textdraw stays stuck in ID 1's screen or higher id's
#1

title says all, i have used timers to hide the textdraw after 3 seconds but it isn't working for id 1 or higher, it only goes away from id 0
Reply
#2

added down
Код:
forward TimeTextForPlayer(playerid, Text:textas, time);
public TimeTextForPlayer(playerid, Text:textas, time)
{
	TextDrawShowForPlayer(playerid,textas);
	SetTimerEx("DestroyTextTimer",time,0,"i",_:textas);
}
forward DestroyTextTimer(Text:textas);
public DestroyTextTimer(Text:textas)
{
	TextDrawDestroy(textas);
}
and use

TimeTextForPlayer(playerid, your textdraw name, time);
Reply
#3

check your arrays you used for each players like
Код:
for(ID=0;ID<MAX_PLAYERS;ID++)
{
HideTextDraw(ID,Textdraw[ID]);
}
the reason for the textdraw not working for IDs higher than 0 indicates that the pointer (ID here) points to 0 always.
make sure it gets count up by inserting a
Код:
new string[64];
format(string,sizeof(string),"hide textdraw for player id %d",ID);
SendClientMessage(ID,0xff7f7fff,string);
into that loop, its easier to ckeck out if that variable counts up...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)