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


Messages In This Thread
add more dialogs - by GabiXx - 29.11.2016, 23:55
Re: add more dialogs - by TheRohlikar - 30.11.2016, 00:48
Re: add more dialogs - by GabiXx - 30.11.2016, 01:03
Re: add more dialogs - by TheRohlikar - 30.11.2016, 01:14
Re: add more dialogs - by GabiXx - 30.11.2016, 01:20
Re: add more dialogs - by Micko123 - 30.11.2016, 06:22

Forum Jump:


Users browsing this thread: 1 Guest(s)