20.01.2018, 08:37
Alright, let's check your screenshot. You can see you first line is the HEADER of your dialog. Interesting.
What type of dialog we have where an header is required? (Taken from a_samp.inc)
// Player GUI Dialog
Yes, it's the style 5.
For some unknown reasons your prefer use 5 instead of DIALOG_STYLE_TABLIST_HEADERS which isn't the best option but anyway, your problem is here. Take the style 4 which doesn't require an header.
What type of dialog we have where an header is required? (Taken from a_samp.inc)
// Player GUI Dialog
PHP код:
#define DIALOG_STYLE_MSGBOX 0
#define DIALOG_STYLE_INPUT 1
#define DIALOG_STYLE_LIST 2
#define DIALOG_STYLE_PASSWORD 3
#define DIALOG_STYLE_TABLIST 4
#define DIALOG_STYLE_TABLIST_HEADERS 5
For some unknown reasons your prefer use 5 instead of DIALOG_STYLE_TABLIST_HEADERS which isn't the best option but anyway, your problem is here. Take the style 4 which doesn't require an header.
PHP код:
new helps[600];
for(new i; i < sizeof(hdia); i++)
strcat(helps, hdia[i]);