Y_INI
#1

Seems to be alot of questions regarding it lately.. but uh.. What's wrong with this?

pawn Код:
CMD:openfile(playerid, params[])
{
    new
        FileName[50],
        string[128];

    if(sscanf(params, "s", FileName))
        return SendClientMessage(playerid, -1, "{FFFFFF}Usage: /OpenFile [file name]");

    format(string, sizeof(string), "Accounts/%s.ini", FileName);
    new
        INI:file = INI_Open(string);
       
    new
        pPW[128],
        pAuthLvl,
        pVIP,
        pCash,
        pSkin,
        pScore,
        pKills,
        pDeaths,
        pCustomCarID,
        pCustomCarC1,
        pCustomCarC2,
        pCustomCarPlate[32];
       
    INI_String("Password", pPW, 128);
    INI_Int("Authorization", pAuthLvl);
    INI_Int("VIP", pVIP);
    INI_Int("Cash", pCash);
    INI_Int("Skin", pSkin);
    INI_Int("Score", pScore);
    INI_Int("Kills", pKills);
    INI_Int("Deaths", pDeaths);
    INI_Int("CustomCarID", pCustomCarID);
    INI_Int("CustomCarC1", pCustomCarC1);
    INI_Int("CustomCarC2", pCustomCarC2);
    INI_String("CustomCarPlate", pCustomCarPlate, 32);

    new string2[128];
    format(string2, sizeof(string2), "Filename: %s.ini | Password: %s | Auth. Lvl: %d | V.I.P Lvl: %d", FileName, pPW, pAuthLvl, pVIP);
    SendClientMessage(playerid, -1, string2);
    format(string2, sizeof(string2), "Cash: $%d | Skin: %d | Score: %d | Kills: %d | Deaths: %d", pCash, pSkin, pScore, pKills, pDeaths);
    SendClientMessage(playerid, -1, string2);
    format(string2, sizeof(string2), "Custom Car ID: %d | Custom Car C1: %d | Custom Car C2: %d | Custom Plate: %s", pCustomCarID, pCustomCarC1, pCustomCarC2, pCustomCarPlate);
    SendClientMessage(playerid, -1, string2);
    INI_Close(file);
    return 1;
}
I'm receiving the error:

Quote:

C:\Users\Sky\Documents\Local FunZone\gamemodes\new.pwn(53 : error 017: undefined symbol "name"
C:\Users\Sky\Documents\Local FunZone\gamemodes\new.pwn(53 : error 017: undefined symbol "value"

The error is on every single line with INI_String, and INI_Int.
Reply


Messages In This Thread
Y_INI - by Skylar Paul - 25.07.2011, 00:49
Re: Y_INI - by Skylar Paul - 25.07.2011, 16:32
Re: Y_INI - by Skylar Paul - 25.07.2011, 16:45
Re: Y_INI - by Dr - 25.07.2011, 16:50
Re: Y_INI - by Skylar Paul - 25.07.2011, 16:52
Re: Y_INI - by Skylar Paul - 25.07.2011, 17:03
Re: Y_INI - by Skylar Paul - 25.07.2011, 17:12
Re: Y_INI - by Skylar Paul - 25.07.2011, 17:20

Forum Jump:


Users browsing this thread: 1 Guest(s)