Just a simple question :3
#8

Quote:
Originally Posted by Domnic Toretto
Посмотреть сообщение
pawn Код:
forward SavePlayerStats(targetid);
public SavePlayerStats(targetid)
{
    new INI:File = INI_Open(UserPath(playerid));
    INI_SetTag(File,"data");
    INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
    INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
    INI_WriteInt(File,"Kills",PlayerInfo[playerid][pKills]);
    INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeaths]);
    INI_WriteInt(File,"Starter",PlayerInfo[playerid][pStarter]);
    INI_WriteInt(File,"Zombie",PlayerInfo[playerid][pZombie]);
    INI_WriteInt(File,"Score",GetPlayerScore(playerid));
    INI_Close(File);
    /*new str[128], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    format(str, sizeof(str), "%s got his account saved successfuly.", name);
    SendClientMessageToAll(0x4958761, str);*/

    print("\n----------------------------------");
    print(" Players' accounts saved! On SavePlayerStats");
    print("----------------------------------\n");
    return 1;
}
as Hussan said
thats wrong
and i didnt say that

Quote:
Originally Posted by Guitar
Посмотреть сообщение
So it works? like this
pawn Код:
SavePlayerStats(targetid);
? Because, I don't want to keep restarting my server, players will think that it has bugs and quit.
yes it will work
Reply


Messages In This Thread
Just a simple question :3 - by Guitar - 23.08.2012, 16:53
Re: Just a simple question :3 - by ZBits - 23.08.2012, 16:55
Re: Just a simple question :3 - by HuSs3n - 23.08.2012, 16:57
Re: Just a simple question :3 - by ZBits - 23.08.2012, 16:59
Re: Just a simple question :3 - by scottyishere - 23.08.2012, 17:06
Re: Just a simple question :3 - by Guitar - 23.08.2012, 17:14
Re: Just a simple question :3 - by scottyishere - 23.08.2012, 17:17
Re: Just a simple question :3 - by HuSs3n - 23.08.2012, 17:21

Forum Jump:


Users browsing this thread: 2 Guest(s)