Text Draw Problem
#1

Okay I just fixed my last problem where the Game Text was not showing up, I fixed that now im trying to change it from game text to text draw, I can get the text draw up but it doesnt go away, heres the timer i use:

pawn Код:
SetTimer("DestroyTextdraw",5000,false);
PropTextDraw1[playerid] = TextDrawCreate(100,150,str);
That is under OnPlayerPickupPickUp

and here is the timer itself:

pawn Код:
forward DestroyTextDraw(playerid);
public DestroyTextDraw(playerid)
{
    TextDrawDestroy(PropTextDraw1[playerid]);
    TextDrawActive[playerid] = 0;
    return 1;
}
anyone know why it isnt destroying the text draw?
Reply
#2

um try making a variable on top

pawn Код:
new Timer
pawn Код:
forward DestroyTextDraw(playerid);
public DestroyTextDraw(playerid)
{
    TextDrawDestroy(PropTextDraw1[playerid]);
    TextDrawActive[playerid] = 0;
    KillTimer(Timer);
    return 1;
}
pawn Код:
Timer = SetTimer("DestroyTextdraw",5000,false);
Reply
#3

PropTextDraw1[playerid] = TextDrawCreate(100,150,"_");

format(string,sizeof(string),"What ever you want your textdraw to say", whatevar);
TextDrawSetString(PropTextDraw1[playerid],string);

This forum requires that you wait 120 seconds between posts. Please try again in 17 seconds.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)