Text Draw Problem - 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: Text Draw Problem (
/showthread.php?tid=175063)
Text Draw Problem -
mrcoolballs - 08.09.2010
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?
Re: Text Draw Problem -
Kitten - 08.09.2010
um try making a variable on top
pawn Код:
forward DestroyTextDraw(playerid);
public DestroyTextDraw(playerid)
{
TextDrawDestroy(PropTextDraw1[playerid]);
TextDrawActive[playerid] = 0;
KillTimer(Timer);
return 1;
}
pawn Код:
Timer = SetTimer("DestroyTextdraw",5000,false);
Re: Text Draw Problem -
willsuckformoney - 08.09.2010
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.