Y_INI problem!!
#1

pawn Код:
if(dialogid == DIALOG_REGISTER)
    {
        if (!response) return Kick(playerid);
        if(response)
        {
            new string[128], string2[128];
            if(!strlen(inputtext)) return
            format(string, sizeof(string), ""GM_NAME" Registration: (%s)", GetPlayerNameEx(playerid));
            format(string2, sizeof(string2), "Error! Cannot create your account.\n\n%s, we cannot find this name registered in the database!\nPlease enter a password to register.", GetPlayerNameEx(playerid));
            ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, string, string2, "Register", "Close");
            new INI:File = INI_Open(UserSavePath(playerid));
            INI_SetTag(File,"data");
            INI_WriteInt(File,"Password",udb_hash(inputtext));
            INI_WriteInt(File, "Level",PlayerInfo[playerid][pLevel] = 0);
            INI_WriteInt(File, "Admin",PlayerInfo[playerid][pAdmin] = 0);
            INI_WriteInt(File, "Level",PlayerInfo[playerid][pLevel] = 0);
            INI_WriteInt(File, "Admin",PlayerInfo[playerid][pAdmin] = 0);
            INI_WriteInt(File, "Kills",PlayerInfo[playerid][pKills] = 0);
            INI_WriteInt(File, "Deaths",PlayerInfo[playerid][pDeaths] = 0);
            INI_WriteInt(File, "Ban",PlayerInfo[playerid][pBan] = 0);
            SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have just registered, welcome to "GM_NAME"!");
            SpawnPlayer(playerid);
        }
    }
It will create the file in the User folder, I get no errors or warnings, it creates it but theres no data inside it, any help?
Reply


Messages In This Thread
Y_INI problem!! - by RLGaming - 23.10.2012, 01:45
Re: Y_INI problem!! - by newbienoob - 23.10.2012, 01:53
Re: Y_INI problem!! - by RLGaming - 23.10.2012, 01:55
Re: Y_INI problem!! - by newbienoob - 23.10.2012, 01:58
Re: Y_INI problem!! - by RLGaming - 23.10.2012, 02:00
Re: Y_INI problem!! - by newbienoob - 23.10.2012, 02:12
Re: Y_INI problem!! - by RLGaming - 23.10.2012, 02:23
Re: Y_INI problem!! - by _Khaled_ - 23.10.2012, 03:39
Re: Y_INI problem!! - by RLGaming - 23.10.2012, 12:01
Re: Y_INI problem!! - by gtakillerIV - 23.10.2012, 12:07

Forum Jump:


Users browsing this thread: 1 Guest(s)