Fast help
#1

pawn Код:
public SaveAllStats()
{
    new count;
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(fexist(Path(i))
    {
    new INI:File = INI_Open(Path(i));
    INI_SetTag(File,"data");
    INI_WriteInt(File,"Cash",GetPlayerCash(i));
    INI_WriteInt(File,"Admin",PlayerInfo[i][pAdmin]);
    INI_WriteInt(File,"Kills",GetPlayerScore(i));
    INI_WriteInt(File,"Deaths",PlayerInfo[i][pDeaths]);
    INI_WriteInt(File,"NoPm",PlayerInfo[i][pNopm]);
    INI_WriteInt(File,"Mute",PlayerInfo[i][pMuted]);
    INI_WriteInt(File,"Vip",PlayerInfo[i][pVip]);
    INI_WriteInt(File,"C4",PlayerInfo[i][pC4]);
    INI_WriteInt(File,"Banned",PlayerInfo[i][pBanned]);
    INI_WriteInt(File,"Cookies",PlayerInfo[i][pCookies]);
    INI_WriteInt(File,"Warn",PlayerInfo[i][pWarn]);
    INI_WriteInt(File, "RegisterDate_day",PlayerInfo[i][RegisterDate_day]);
    INI_WriteInt(File, "RegisterDate_mon",PlayerInfo[i][RegisterDate_mon]);
    INI_WriteInt(File, "RegisterDate_year",PlayerInfo[i][RegisterDate_year]);
    INI_WriteInt(File, "RegisterDate_hour",PlayerInfo[i][RegisterDate_hour]);
    INI_WriteInt(File, "RegisterDate_min",PlayerInfo[i][RegisterDate_min]);
    INI_WriteInt(File, "RegisterDate_sec",PlayerInfo[i][RegisterDate_sec]);
    INI_WriteInt(File,"Jailed",PlayerInfo[i][pJailed]);
    INI_WriteInt(File,"Logged",PlayerInfo[i][pLogged]);
    INI_WriteInt(File,"B_Time",PlayerInfo[i][B_Time]);
    INI_WriteInt(File,"B_Till",PlayerInfo[i][B_Till]);
    INI_WriteInt(File,"AdminActions",PlayerInfo[i][pAdminActions]);
    INI_WriteInt(File,"Rank",PlayerInfo[i][pRank]);
    INI_Close(File);
    }
    }
    SaveServerStats();
    new msg[128];
    format(msg,128,"System: Stats for %d online players have been autosaved.",count);
    SCMTA(0x7DAEFFFF,msg);
    new ok[128];
    format(ok,128,"0,6System: Stats for %d online players have been autosaved.",count);
    IRC_Say(gGroupID, IRC_CHANNEL, ok);
    return 1;
}
(2255) : error 001: expected token: ")", but found "{"

Line 2254 - 2255:
pawn Код:
if(fexist(Path(i))
    {
"Path" is releated to the player account saving file.
Reply


Messages In This Thread
Fast help - by Face9000 - 18.12.2012, 18:48
Re: Fast help - by Mike_Peterson - 18.12.2012, 18:54
Re: Fast help - by smeti - 18.12.2012, 18:57
Re: Fast help - by Riddick94 - 18.12.2012, 19:06
Re: Fast help - by Face9000 - 18.12.2012, 19:10

Forum Jump:


Users browsing this thread: 1 Guest(s)