30.10.2011, 19:10
Hello,
I'm having some problem with my file system, actually everything is working fine except for this:
When the function is called it never stores the kills and deaths or any other thing...
Does anyone know what's the problem?
Thanks.
I'm having some problem with my file system, actually everything is working fine except for this:
pawn Код:
public OnPlayerDeath(playerid,killerid,reason)
{
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Kills",PlayerInfo[killerid][pKills]++);
INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeaths]++);
INI_Close(File);
return 1;
}
When the function is called it never stores the kills and deaths or any other thing...
Does anyone know what's the problem?
Thanks.