06.08.2011, 21:26
Why Are You Using Case Then?
Try this:
if Pawn Crashes Remove Or Add One More Bracket Before Return.
Try this:
pawn Code:
if(dialogid == id)
{
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");
}
}
return 1;
}