A little issue the y_ini
#1

(NOTE:I'm running everything on my localhost no servers or anything)
So i'm having an issue in this database saver, like when launch the filterscript it launch successfully and saves my stats, and if i relog my stats will stay the same, but when i close samp-server.exe and relaunch it again and join the server, all my stats were gone...

PHP код:
#define PATH "GoldUser/%s.ini"
forward LoadUser_data(playerid,name[],value[]);
public 
LoadUser_data(playerid,name[],value[])
{
    
INI_Int("Gold",PlayerInfo[playerid][pGold]);
     return 
1;
}
public 
OnPlayerDisconnect(playeridreason)
{
   new 
INI:File INI_Open(UserPath(playerid));
   
INI_SetTag(File,"data");
   
INI_WriteInt(File,"Gold",PlayerInfo[playerid][pGold]);
   
INI_Close(File);
   return 
1;

is there anything missing or wrong?
Reply


Messages In This Thread
A little issue the y_ini - by RxErT - 03.03.2018, 06:45
Re: A little issue the y_ini - by PepsiCola23 - 03.03.2018, 09:22
Re: A little issue the y_ini - by wallen - 03.03.2018, 09:26
Re: A little issue the y_ini - by RxErT - 03.03.2018, 10:47
Re: A little issue the y_ini - by PepsiCola23 - 03.03.2018, 11:19
Re: A little issue the y_ini - by RxErT - 03.03.2018, 11:54
Re: A little issue the y_ini - by RxErT - 03.03.2018, 13:40

Forum Jump:


Users browsing this thread: 5 Guest(s)