19.06.2014, 17:10
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:
The register one, but it doesn't show up.
With debugging it showed that it stopped at number #4..
Please help me out
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;
}
With debugging it showed that it stopped at number #4..
Please help me out