09.03.2010, 14:26
Hey, i need help with the Dialog Style MSG_BOX i don't know how to use can anybody give me a tut.?
public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext, "/dialogtest", true)) { ShowPlayerDialog(playerid, dialogid, DIALOG_STYLE_MSGBOX, "Test Caption", "Test Info", "Test 1", "Test 2"); return 1; } return 1; }
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == DIALOG_ID_HERE && response) { // If he responded // do ST00F } return 1; }
DIALOG_STYLE_MSGBOX
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == DIALOG_ID_HERE && response) { return 1; } return 1; }