SA-MP Forums Archive
add more dialogs - 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: add more dialogs (/showthread.php?tid=623279)



add more dialogs - GabiXx - 29.11.2016

I want to add 2 more dialogs after that on register about player sex and email you know..
PHP код:
public OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    switch( 
dialogid )
    {
        case 
DIALOG_REGISTER:
        {
            if (!
response) return Kick(playerid);
            if(
response)
            {
                if(!
strlen(inputtext)) return ShowPlayerDialog(playeridDIALOG_REGISTERDIALOG_STYLE_PASSWORD""COL_WHITE"Registering...",""COL_RED"Ai introdus o parola gresita.\n"COL_WHITE"Scrie o parola pentru a te inregistra.","Register","Quit");
                new 
INI:File INI_Open(UserPath(playerid));
                
INI_SetTag(File,"data");
                
INI_WriteInt(File,"Password",udb_hash(inputtext));
                
INI_WriteInt(File,"Cash",0);
                
INI_WriteInt(File,"Admin",0);
                
INI_WriteInt(File,"Kills",0);
                
INI_WriteInt(File,"Deaths",0);
                
INI_WriteInt(File,"Skin",0);
                
INI_Close(File);
                
GivePlayerMoney(playerid,10000);
                
SetPlayerColor(playerid,0xFFFFFFAA);
                
SetSpawnInfo(playerid,0,PlayerInfo[playerid][pSkin],1283.5896,-1329.5938,13.3824,89.6460,0,0,0,0,0,0);
                
SpawnPlayer(playerid);
            }
        } 
How i proced?


Re: add more dialogs - TheRohlikar - 30.11.2016

after "SpawnPlayer" use "ShowPlayerDialog" function


Re: add more dialogs - GabiXx - 30.11.2016

I want the dialog when he register man, after the dialog with passwor to appear dialog with sex (m/f) and email, no after spawning


Re: add more dialogs - TheRohlikar - 30.11.2016

You have "SpawnPlayer" after clicking button in regsiter dialog, not me.


Re: add more dialogs - GabiXx - 30.11.2016

So where i have to add the dialogs and after this to get spawned?


Re: add more dialogs - Micko123 - 30.11.2016

You know you made 5 posts in no more than one hour??