Script stops out of nowhere
#1

Hello,

Never had any issues with this so I have no idea what causes this,
When I connect to my server it runs everything that it should. It goes through a callback that would cause this to be triggered:

pawn Код:
stock SPD(playerid, dialogid) // a shortened custom function for ShowPlayerDialog; you don't have to handle all of the ShowPlayerDialog lines, just know the playerid and the dialogid you want to show
{
    print("CP 3");
    new string[500];
    print("CP 4");
    switch(dialogid)
    {
        case DIALOG_REGISTER:
        {
            print("CP 5");
            format(string, sizeof(string), "{FFFFFF}Welcome to {0086EF}Ultimate Sumo Server\n\n{FFFFFF}Username:  {0086EF}%s\n\n{FFFFFF}Please enter your password below", GetName(playerid));
            ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, ""#COL_EMB_WHITE"Account Registration", string, "Register", "Cancel");
            print("CP 6");
        }
        case DIALOG_AUTHENTICATION:
        {
            format(string, sizeof(string), "{FFFFFF}Welcome back to {0086EF}Ultimate Sumo Server\n\n{FFFFFF}Username:  {0086EF}%s\n\n{FFFFFF}Please enter your password below", GetName(playerid));
            ShowPlayerDialog(playerid, DIALOG_AUTHENTICATION, DIALOG_STYLE_PASSWORD, ""#COL_EMB_WHITE"Account Authentication", string, "Login", "Cancel");
        }
        case DIALOG_ADMINCODE:
        {
            format(string, sizeof(string), "{FFFFFF}Please enter your admin code below.");
            ShowPlayerDialog(playerid, DIALOG_ADMINCODE, DIALOG_STYLE_PASSWORD, ""#COL_EMB_WHITE"Admin Identification", string, "Login", "Cancel");
        }
        case DIALOG_ADMINCODE2:
        {
            format(string, sizeof(string), "{FFFFFF}Please enter your admin code below.\n\n{FF0000}You need to enter a code.");
            ShowPlayerDialog(playerid, DIALOG_ADMINCODE, DIALOG_STYLE_PASSWORD, ""#COL_EMB_WHITE"Admin Identification", string, "Login", "Cancel");
        }
        case DIALOG_ADMINCODE3:
        {
            format(string, sizeof(string), "{FFFFFF}Please enter your admin code below.\n\n{FF0000}Wrong Code.");
            ShowPlayerDialog(playerid, DIALOG_ADMINCODE, DIALOG_STYLE_PASSWORD, ""#COL_EMB_WHITE"Admin Identification", string, "Login", "Cancel");
        }
        case DIALOG_CHANGEPASSWORD:
        {
            format(string, sizeof(string), "{FFFFFF}Please enter your new password.");
            ShowPlayerDialog(playerid, DIALOG_CHANGEPASSWORD, DIALOG_STYLE_INPUT, ""#COL_EMB_WHITE"Change Password", string, "Change", "Cancel");
        }
    }
    return -1;
}
The register one, but it doesn't show up.
With debugging it showed that it stopped at number #4..

Please help me out
Reply


Messages In This Thread
Script stops when its supposed to show a dialog.. - by Stefand - 19.06.2014, 17:10
Re: Script stops out of nowhere - by Stefand - 19.06.2014, 21:30
Re: Script stops out of nowhere - by [WSF]ThA_Devil - 19.06.2014, 22:03
Re: Script stops out of nowhere - by Stefand - 20.06.2014, 07:23

Forum Jump:


Users browsing this thread: 1 Guest(s)