SA-MP Forums Archive
TextDraw 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: TextDraw problem (/showthread.php?tid=175607)



TextDraw problem - mrcoolballs - 10.09.2010

Has anyone else ever had the problem of text draws deleting the wrong ones, Im trying to make a countdown, in text draws, I have made it work properly except when i remove the countdown text draw the second text draw gets removed aswell, is there a way to stop this? and i have assigned both textdraws to different variables


Re: TextDraw problem - Sascha - 10.09.2010

are you sure you used the right variables?...
I guess best is to post that part of the script here, so we can help maybe


Re: TextDraw problem - Zamaroht - 10.09.2010

Remember that you should initialize textdraw variables with INVALID_TEXT_DRAW.
That is, for example:

pawn Код:
new Text:MyTextdraw = Text:INVALID_TEXT_DRAW;
Otherwise, ID 0 will be assigned to it by default, and you could end up doing the wrong actions to the first created textdraw.