25.07.2011, 00:49
Seems to be alot of questions regarding it lately.. but uh.. What's wrong with this?
I'm receiving the error:
The error is on every single line with INI_String, and INI_Int.
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;
}
Quote:
C:\Users\Sky\Documents\Local FunZone\gamemodes\new.pwn(53 ![]() C:\Users\Sky\Documents\Local FunZone\gamemodes\new.pwn(53 ![]() |