02.02.2010, 17:51
Well example i have this
And you did Dialogue wrong way. heres The right way:
Just change my OnDialogeResponse to what you need
And you did Dialogue wrong way. heres The right way:
Code:
if (strcmp("/cmds",cmdtext,true) == 0) { ShowPlayerDialog(playerid, 111, DIALOG_STYLE_LIST, "Server Commands", "Register on Server\Login On Server", "Select", "Cancle"); return 1; }
Just change my OnDialogeResponse to what you need
Code:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if (dialogid == 111) { if(response) { if(listitem == 0) //Register on server { //Do Something here } if(listitem == 1) //Login onserver { //Do Something here } } return 1; } return 0; }