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

fixed
Reply
#3

Be friendly and tell the community how.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)