Dialoghelp?
#1

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(playeridclassid)
{
    
LogCallback("OnPlayerRequestClass");
    if(
RegistrationStep[playerid] == && 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(playerid1245DIALOG_STYLE_PASSWORD,"Welcome, Please Log-In","Type your password below to log-in","Log-in","Quit");
            }
            else
            {
                
ShowPlayerDialog(playerid1246DIALOG_STYLE_PASSWORD,"Welcome, Please Register","Type your password below to register a new account.","Register","Quit");
            }
            new 
ymd;
            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(playeridCOLOR_GREY,"* You selected \"Refuse\", To play you must agree to the terms of condition");
            
ServerKick(playerid);
        }
    } 
Reply
#2

i see that the first dialog you show to the player is 1244 which is under onplayerrequestclass, then, what's the dialog that doesn't show?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)