y_ini won't save
#6

Quote:
Originally Posted by Maximun
Посмотреть сообщение
PHP код:
public OnPlayerDisconnect(playeridreason)
{
    new 
LastSkin GetPlayerSkin(playerid);
    new 
Float:xFloat:yFloat:z;
    
GetPlayerPos(playeridxyz);
    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,"Skin"LastSkin);
    
INI_WriteFloat(File,"Xpos"x);
    
INI_WriteFloat(File,"Ypos"y);
    
INI_WriteFloat(File,"Zpos"z);
    
INI_WriteInt(File,"NewReg",0);
    
INI_Close(File);
    return 
1;

Can you test?
now it saves the position but not the skin id
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: 1 Guest(s)