Remove all textdraws?
#5

Quote:
Originally Posted by TzAkS.
Посмотреть сообщение
Try this,not tested
Код:
for(new i = 0; i < MAX_TEXT_DRAWS; i++) TextDrawHideForPlayer(playerid, Text:i);
That would work assuming all of his textdraws are named "Text0", "Text1", ect.

You just have to keep a list of the textdraws you have.

Something like... (From my mode)

pawn Код:
/*
    Available Textdraws:

        literaltextdrawname, [ DESCRIPTION ] ((clickable?))

        startup1, [ LOGIN ] (clickable)
        startup2, [ REGISTER ] (clickable)
        startup3, [ BOX ]
        startup4, [ PLAYER COUNT ]
        startup5, [ INFORMATION ]
        news1, [ WELCOME ]
        news2, [ ACTUAL NEWS ]
        news3, [ NEWS BOX ]
        XPLVL[playerid][0-5], [ XP METER ]
        XPLevelUp, [ Show "LEVEL UP!" above the XP meter ]
       
    Available Dialogs:
   
        DIALOG_BLANK - Possible uses: Notifications, messages not requiring a response.
        DIALOG_REGISTER - Registration dialog. Shouldn't have to add this / delete this anywhere in the script.
        DIALOG_LOGIN - Login dialog. Possible uses: Temporary logout?
        DIALOG_STATS - Statistics dialog.
       
*/
It's good to stay organized.
Reply


Messages In This Thread
Remove all textdraws? - by Mento - 08.05.2012, 03:42
Re: Remove all textdraws? - by DeathTone - 08.05.2012, 03:52
Re: Remove all textdraws? - by TzAkS. - 08.05.2012, 06:25
Re: Remove all textdraws? - by $$inSane - 08.05.2012, 11:58
Re: Remove all textdraws? - by 2KY - 08.05.2012, 12:01
Re: Remove all textdraws? - by Jonny5 - 08.05.2012, 12:37

Forum Jump:


Users browsing this thread: 1 Guest(s)