SA-MP Forums Archive
Dialoghelp? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Dialoghelp? (/showthread.php?tid=597705)



Dialoghelp? - N0FeaR - 03.01.2016

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);
        }
    } 



Re: Dialoghelp? - Sawalha - 03.01.2016

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?