Dialog help
#3

Код:
if(dialogid == DIALOG_REGISTER)
    {
        if(!response) return Kick(playerid);
        if(response)
        {
            if(strlen(inputtext) > 5)
            {                
                new INI:File = INI_Open(UserSavePath(playerid));
                INI_WriteInt(File, "Password", strlen(inputtext));
                INI_WriteInt(File, "Level", PlayerInfo[playerid][pLevel] = 0);
                INI_WriteInt(File, "Administration", PlayerInfo[playerid][pAdmin] = 0);
                INI_WriteInt(File, "VIP Level", PlayerInfo[playerid][pVIP] = 0);
                INI_WriteInt(File, "Skin ID", PlayerInfo[playerid][pSkinID] = 299);
                INI_WriteInt(File, "Playing Hours", PlayerInfo[playerid][pConnectTime] = 0);
                INI_WriteInt(File, "House Key", PlayerInfo[playerid][pHouseKey] = -1);
                INI_WriteInt(File, "Kills", PlayerInfo[playerid][pKills] = 0);
                INI_WriteInt(File, "Deaths", PlayerInfo[playerid][pDeaths] = 0);
                INI_Close(File);
                new genderstring[96];
                format(genderstring, sizeof(genderstring), "%s, choose your gender!", GetPlayerNameEx(playerid));
                ShowPlayerDialog(playerid, DIALOG_REGISTERGENDER, DIALOG_STYLE_LIST, genderstring, "1) I am a male.\n2) I am a female.", "Select", "Cancel");
            }
        }
    }
Maybe it will work.
Reply


Messages In This Thread
Dialog help - by RLGaming - 25.10.2012, 11:17
Re: Dialog help - by Faisal_khan - 25.10.2012, 11:27
Re: Dialog help - by RedJohn - 25.10.2012, 11:40
Re: Dialog help - by RLGaming - 25.10.2012, 13:06
Re: Dialog help - by RLGaming - 25.10.2012, 17:05

Forum Jump:


Users browsing this thread: 1 Guest(s)