23.07.2011, 21:49
If everything else you have done is correct, then the problem is possibly here:
ShowPlayerDialog(playerid, 2008, 2, "Class Changer", string, "Accept", "Cancel");
Maybe it's interfering with other dialog ids.
Try this:
ShowPlayerDialog(playerid, 2008, 2, "Class Changer", string, "Accept", "Cancel");
Maybe it's interfering with other dialog ids.
Try this:
pawn Код:
// On top of your script:
#define DIALOG_CLASS_CHANGER 1245
//1245 or any random number
//In your code:
ShowPlayerDialog(playerid, DIALOG_CLASS_CHANGER , 2, "Class Changer", string, "Accept", "Cancel");
//In OnDialogResponse:
case DIALOG_CLASS_CHANGER: {
// Your things here..
}

