Best way for handling custom textdraw menus? (enums, dialog style IDs)
#2

2. You've just created a tag! Simply creating a variable with your new custom tag will do this. Also keep in mind that named enums register a new tag type.

1. Really, it's completely up to you. I don't quite know what do you mean by creating enum. Do you have in mind something like enumerated array?

pawn Код:
#define MAX_CUSTOM_TEXTDRAWS    20

enum E_CUSTOM_TEXTDRAW {
    Text:tid,
    tmessage[128]
}
static
    CustomTextDraws[MAX_CUSTOM_TEXTDRAWS][E_CUSTOM_TEXTDRAW],
    Iterator:CustomTextDraws<MAX_CUSTOM_TEXTDRAWS>;
In either case, think what will be easier for you to work with and go with it.
Reply


Messages In This Thread
Best way for handling custom textdraw menus? (enums, dialog style IDs) - by RajatPawar - 08.10.2013, 13:24
Re: Best way for handling custom textdraw menus? (enums, dialog style IDs) - by Misiur - 08.10.2013, 13:47
Re: Best way for handling custom textdraw menus? (enums, dialog style IDs) - by RajatPawar - 08.10.2013, 15:06

Forum Jump:


Users browsing this thread: 2 Guest(s)