when server restarts ....
#1

hey,

How to make when the server restart it saves the players stats? because its only saving when the player disconnects, so if server restart the player stats won't save, i want it to save when server restart

PHP Code:
public OnPlayerDisconnect(playeridreason)
{
    
    new 
INI:File INI_Open(UserPath(playerid));
    
INI_SetTag(File,"data");
    
INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
    
INI_WriteInt(File,"Admin",SInfo[playerid][pAdmin]);
    
INI_Close(File);

i have more but i won't write them all
Reply
#2

if Y_ini fails then u better learn it, its not that easy to use.. i'd suggest u to use Dini instead, its easier
Reply
#3

dude my quistion is clear
i asked how to make when server restart stats saves?

or just give me for ex
puplic OnServerRestart For Example

give me anything that says about server restart and ill make stats saves
Reply
#4

omg any help?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)