y_ini won't save
#9

Can you try that?
PHP код:
public OnPlayerDisconnect(playeridreason)
{
    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]);
    
PlayerInfo[playerid][Skin] = GetPlayerSkin(playerid);
    
INI_WriteInt(File,"Skin"PlayerInfo[playerid][Skin]);
    
GetPlayerPos(playeridPlayerInfo[playerid][Xpos], PlayerInfo[playerid][Ypos], PlayerInfo[playerid][Zpos]);
    
INI_WriteFloat(File,"Xpos"PlayerInfo[playerid][Xpos]);
    
INI_WriteFloat(File,"Ypos"PlayerInfo[playerid][Ypos]);
    
INI_WriteFloat(File,"Zpos"PlayerInfo[playerid][Zpos]);
    
INI_WriteInt(File,"NewReg"0);
    
INI_Close(File);
    return 
1;

Reply


Messages In This Thread
y_ini won't save - by Lukasz56 - 08.10.2017, 13:58
Re: y_ini won't save - by whadez - 08.10.2017, 14:07
Re: y_ini won't save - by Lukasz56 - 08.10.2017, 14:11
Re: y_ini won't save - by Maximun - 08.10.2017, 14:23
Re: y_ini won't save - by whadez - 08.10.2017, 14:29
Re: y_ini won't save - by Lukasz56 - 08.10.2017, 14:29
Re: y_ini won't save - by Lukasz56 - 08.10.2017, 14:32
Re: y_ini won't save - by Lukasz56 - 08.10.2017, 14:35
Re: y_ini won't save - by Maximun - 08.10.2017, 14:40
Re: y_ini won't save - by Lukasz56 - 08.10.2017, 15:17

Forum Jump:


Users browsing this thread: 3 Guest(s)