Y_INI issues not saving data on a gamehost.
#2

Because you need something like this:

Код:
public OnPlayerDisconnect(playerid, reason)
{
    new INI:File = INI_Open(UserPath(playerid)); // - Opens the Userpath and saves it when they disconnect.
    INI_SetTag(File,"Roleplay - User Data"); // - Below, add your own loading things but make it like mine, this is a layout I've made for you.
    INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
    INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
    INI_Close(File);
}
return 1;
}
Reply


Messages In This Thread
Y_INI issues not saving data on a gamehost. - by C4SH - 03.11.2015, 20:58
Re: Y_INI issues not saving data on a gamehost. - by Scottylad - 03.11.2015, 21:07
Re: Y_INI issues not saving data on a gamehost. - by C4SH - 03.11.2015, 21:12
Re: Y_INI issues not saving data on a gamehost. - by Scottylad - 03.11.2015, 21:13
Re: Y_INI issues not saving data on a gamehost. - by ThePhenix - 03.11.2015, 21:14
Re: Y_INI issues not saving data on a gamehost. - by C4SH - 03.11.2015, 21:30
Re: Y_INI issues not saving data on a gamehost. - by Hayden_Almeida - 23.07.2018, 20:40

Forum Jump:


Users browsing this thread: 1 Guest(s)