dialogs
#1

This code isn't working on DialogResponse, it's supposed to list down names but it's not even showing the dialog.

Код:
showNameSuggestions(playerid)  {
	new msg[128];
	new female[5000];
	new male[5000];
	dialogstr[0] = 0;
	for(new i=0;i<sizeof(NameSuggestions); i++) {
		if(NameSuggestions[i][ENameSugID] == 1) {
			format(female,sizeof(female), "%s\n",NameSuggestions[i][ENameSug]);
		} else if(NameSuggestions[i][ENameSugID] == 2) {
			format(male,sizeof(male), "%s\n",NameSuggestions[i][ENameSug]);
		}
		format(msg,sizeof(msg), "\tMale Names\tFemale Names\tID\n\
								 \t%s\t%s\t",male,female,NameSuggestions[i][ENameSugID]);
		strcat(dialogstr,msg,sizeof(dialogstr));
	}
	ShowPlayerDialog(playerid, DIALOG_HELP, DIALOG_STYLE_TABLIST_HEADERS, "Suggested Names", dialogstr, "help!","sir pls?");
}
server log
Код:
[18:27:17] [debug] Run time error 3: "Stack/heap collision (insufficient stack size)"
[18:27:17] [debug]  Stack pointer (STK) is 0x327E48, heap pointer (HEA) is 0x328EA0
[18:27:17] [debug] AMX backtrace:
[18:27:17] [debug] #0 ???????? in public OnDialogResponse () from main.amx
Reply


Messages In This Thread
dialogs - by Lajko1 - 16.04.2017, 16:43
Re: dialogs - by Lajko1 - 16.04.2017, 17:37
Re: dialogs - by GangstaSunny. - 16.04.2017, 18:20

Forum Jump:


Users browsing this thread: 1 Guest(s)