03.01.2016, 21:12
Wont show the next dialog what can be the problem? its show the first dialog here but wont show the dialogid 1244
PHP код:
public OnPlayerRequestClass(playerid, classid)
{
LogCallback("OnPlayerRequestClass");
if(RegistrationStep[playerid] == 0 && gPlayerLogged[playerid] != 1)
{
ShowPlayerDialog(playerid,1244,DIALOG_STYLE_MSGBOX,"Agreement","You agree to read and follow ALL the rules or be {FF0000}kicked/jailed/banned","I Agree","I Refuse");
PlayerInfo[playerid][pModel] = Peds[classid][0];
SetPlayerTeamFromClass(playerid,classid);
}
else
{
SpawnPlayer(playerid);
}
LogCallback("OnPlayerRequestClass");
return false;
}
PHP код:
if(dialogid == 1244)
{
if(response)
{
if (gPlayerAccount[playerid] != 0)
{
ShowPlayerDialog(playerid, 1245, DIALOG_STYLE_PASSWORD,"Welcome, Please Log-In","Type your password below to log-in","Log-in","Quit");
}
else
{
ShowPlayerDialog(playerid, 1246, DIALOG_STYLE_PASSWORD,"Welcome, Please Register","Type your password below to register a new account.","Register","Quit");
}
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Has accepted the terms and conditions.",d,m,y,h,mi,s,sendername);
LoginLog(string);
}
else
{
SCM(playerid, COLOR_GREY,"* You selected \"Refuse\", To play you must agree to the terms of condition");
ServerKick(playerid);
}
}