Dialog Problem!
#1

Hello,

Ok so this is my player enum:
pawn Код:
enum pInfo
{
    pPass,
    pCash,
    pAdminLevel,
    pGender,
    pAge,
    pSkin,
    pNew
}
new PlayerInfo[MAX_PLAYERS][pInfo];
And here is my dialog:
pawn Код:
case DIALOG_REG:
        {
            if(!response) return Kick ( playerid );
            new INI:File = INI_Open(UserPath(playerid));
            switch( listitem )
            {
                case 0:
                {
                    INI_WriteInt(File, "Age", PlayerInfo[playerid][pAge]);
                    SendClientMessage(playerid, COLOR_GREY, "Great, so we have your age!");
                }
                case 1:
                {
                    INI_WriteInt(File, "Age", PlayerInfo[playerid][pAge]);
                    SendClientMessage(playerid, COLOR_GREY, "Great, so we have your age!");
                }
                case 2:
                {
                    INI_WriteInt(File, "Age", PlayerInfo[playerid][pAge]);
                    SendClientMessage(playerid, COLOR_GREY, "Great, so we have your age!");
                }
                case 3:
                {
                    INI_WriteInt(File, "Age", PlayerInfo[playerid][pAge]);
                    SendClientMessage(playerid, COLOR_GREY, "Great, so we have your age!");
                }
                case 4:
                {
                    INI_WriteInt(File, "Age", PlayerInfo[playerid][pAge]);
                    SendClientMessage(playerid, COLOR_GREY, "Great, so we have your age!");
                }
                case 5:
                {
                    INI_WriteInt(File, "Age", PlayerInfo[playerid][pAge]);
                    SendClientMessage(playerid, COLOR_GREY, "Great, so we have your age!");
                }
                case 6:
                {
                    INI_WriteInt(File, "Age", PlayerInfo[playerid][pAge]);
                    SendClientMessage(playerid, COLOR_GREY, "Great, so we have your age!");
                }
                case 7:
                {
                    INI_WriteInt(File, "Age", PlayerInfo[playerid][pAge]);
                    SendClientMessage(playerid, COLOR_GREY, "Great, so we have your age!");
                }
                case 8:
                {
                    INI_WriteInt(File, "Age", PlayerInfo[playerid][pAge]);
                    SendClientMessage(playerid, COLOR_GREY, "Great, so we have your age!");
                }
                case 9:
                {
                    INI_WriteInt(File, "Age", PlayerInfo[playerid][pAge]);
                    SendClientMessage(playerid, COLOR_GREY, "Great, so we have your age!");
                }
                case 10:
                {
                    INI_WriteInt(File, "Age", PlayerInfo[playerid][pAge]);
                    SendClientMessage(playerid, COLOR_GREY, "Great, so we have your age!");
                }
                case 11:
                {
                    INI_WriteInt(File, "Age", PlayerInfo[playerid][pAge]);
                    SendClientMessage(playerid, COLOR_GREY, "Great, so we have your age!");
                }
            }
            INI_Close(File);
        }
    }
    return 1;
}
but this is the outcome and it doesn't save the number they pressed! (say they pressed 1.
pawn Код:
Age = 0
[data]
Password = 256967457
Cash = 0
AdminLevel = 0
Reply


Messages In This Thread
Dialog Problem! - by CyberSnaak - 17.05.2012, 08:38
Re: Dialog Problem! - by TzAkS. - 17.05.2012, 08:53
Re: Dialog Problem! - by MP2 - 17.05.2012, 08:57
Re: Dialog Problem! - by TzAkS. - 17.05.2012, 09:01
Re: Dialog Problem! - by TzAkS. - 17.05.2012, 10:07

Forum Jump:


Users browsing this thread: 1 Guest(s)