Clear All Textdraws except 1...
#1

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.
Reply
#2

You use variables, for example:

new Text:Menu1;
Menu1 = TextDrawCreate(...)

and then use Menu1 in TextDrawideForPlayer.
Reply
#3

like i said, i have allot, like 30 or 40, is there an easier way? or will i ahve to write all 40 manually?
Reply
#4

Or do

pawn Код:
new textdraw[40];
(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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)