Clear All Textdraws except 1... - 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: Clear All Textdraws except 1... (
/showthread.php?tid=70468)
Clear All Textdraws except 1... -
StrickenKid - 24.03.2009
Is There a code to where it clears all text draws off the screen except one??
for example:
i got a text draw menu up and a text draw location, i want the text draw location always there to when the person types /clear it only clears the text draw menu, im making ALLOT of text draws on my server so i need this to work!
Thanks.
Re: Clear All Textdraws except 1... -
Mikep - 24.03.2009
You use variables, for example:
new Text:Menu1;
Menu1 = TextDrawCreate(...)
and then use Menu1 in TextDrawideForPlayer.
Re: Clear All Textdraws except 1... -
StrickenKid - 25.03.2009
like i said, i have allot, like 30 or 40, is there an easier way? or will i ahve to write all 40 manually?
Re: Clear All Textdraws except 1... -
Pyrokid - 25.03.2009
Or do
(the number depends on how many TDs you actually have).
Then for every textdraw do
pawn Код:
textdraw[1] = TextDrawCreate(...)
textdraw[2] = TextDrawCreate(...)
And so on.
Then when you wanna clear them do a loop that clears every number except the one you want.