Server crashes because of dialogs
#1

Hello, I am using dialogs for my phone script, and I am having sort of a problem.

I run this dialog here:

pawn Code:
ShowPlayerDialog(playerid, 7, DIALOG_STYLE_MSGBOX, "Phone", "Choose what you want to do:", "Call", "SMS");
Which should trigger this code:

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");
              }
        }
But instead, if I click any of the buttons, it crashes the server.

Does anyone know what might cause this?
Reply


Messages In This Thread
Server crashes because of dialogs - by Kyle_Olsen - 06.08.2011, 21:13
Re: Server crashes because of dialogs - by 0_o - 06.08.2011, 21:15
Re: Server crashes because of dialogs - by Kyle_Olsen - 06.08.2011, 21:22
Re: Server crashes because of dialogs - by 0_o - 06.08.2011, 21:26
Re: Server crashes because of dialogs - by Kyle_Olsen - 06.08.2011, 21:29
Re: Server crashes because of dialogs - by =WoR=Varth - 06.08.2011, 21:33
Re: Server crashes because of dialogs - by 0_o - 06.08.2011, 21:36
Re: Server crashes because of dialogs - by Kyle_Olsen - 06.08.2011, 21:42
Re: Server crashes because of dialogs - by 0_o - 06.08.2011, 21:43
Re: Server crashes because of dialogs - by Kyle_Olsen - 06.08.2011, 21:44

Forum Jump:


Users browsing this thread: 2 Guest(s)