Quote:
Originally Posted by Wolfe
Read this, and you have your error.
You need to follow switch statements up with case
so like this;
Each case represents your dialogid so you can replace case 0: with the dialog name case DIALOG_WHATEVER:
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { switch(dialogid) { case 24: { // Dialog stuff here } } return 1; }
EDIT: Forgot to put in the first post that you're doing a switch statement then using the if(dialogid == dialogid way. You won't need the switch statement, because you would be switching through nothing. So if you wanted you could just knock off the switch statement, and it'd work fine.
|
I'm doing a multiple dialog. seems like it a single dialog