add more dialogs
#1

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?
Reply
#2

after "SpawnPlayer" use "ShowPlayerDialog" function
Reply
#3

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
Reply
#4

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)