06.08.2011, 21:13
Hello, I am using dialogs for my phone script, and I am having sort of a problem.
I run this dialog here:
Which should trigger this code:
But instead, if I click any of the buttons, it crashes the server.
Does anyone know what might cause this?
I run this dialog here:
pawn Code:
ShowPlayerDialog(playerid, 7, DIALOG_STYLE_MSGBOX, "Phone", "Choose what you want to do:", "Call", "SMS");
pawn Code:
case 7:
{
if(response)
{
format(string, sizeof(string), "* %s types in a number and brings their phone to their ear", GetName(playerid));
NearByMessage(playerid, 12.0, PURPLE, string);
ShowPlayerDialog(playerid, 8, DIALOG_STYLE_INPUT, "Phone", "Type in the number you wish to call:", "Call", "Cancel");
}else{
format(string, sizeof(string), "* %s types in a number on their cellphone", GetName(playerid));
NearByMessage(playerid, 12.0, PURPLE, string);
ShowPlayerDialog(playerid, 9, DIALOG_STYLE_INPUT, "Phone", "Type in the number you wish to SMS:", "Proceed", "Cancel");
}
}
Does anyone know what might cause this?