Y_Ini problem
#1

Sup guys? I can't seem to figure out why this is not working. Here is my code:
pawn Code:
#define USER_FILE "/Accounts/%s.ini"

stock UserFile(playerid)
{
    new file[128];
    format(file, sizeof(file), USER_FILE, GetPName(playerid));
    return file;
}

    switch(dialogid)
    {
        case 1:
        {
            if(!response) return Kick(playerid);
            print("1");
           
            if(!strlen(inputtext)) return ShowRegister(playerid);
            print("2");
            new INI:File = INI_Open(UserFile(playerid));
            print("3");
            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_Close(File);
            print("4");
        }
    }
It stops at "print("2");" and I can't figure out why. Any insight?
Reply


Messages In This Thread
Y_Ini problem - by austin070 - 28.08.2011, 02:59
Re: Y_Ini problem - by dowster - 28.08.2011, 03:14
Re: Y_Ini problem - by austin070 - 28.08.2011, 03:15
Re: Y_Ini problem - by Kingunit - 28.08.2011, 03:46
Re: Y_Ini problem - by austin070 - 28.08.2011, 13:24
Re: Y_Ini problem - by Kush - 28.08.2011, 14:04

Forum Jump:


Users browsing this thread: 2 Guest(s)