A little issue the y_ini
#7

FIXED!
Sharing what i did to fix:

Let me start off thanking PepsiCola for his idea because it helped to save the data but not to load it.
so what i did, is i put this under public OnPlayerConnect(playerid) callback so when player's name is already exists in the database his/her data will be loaded, but if he/she is new, it wouldn't do anything..

PHP код:
public OnPlayerConnect(playerid)
{
    if(
fexist(UserPath(playerid)))
    {
        
INI_ParseFile(UserPath(playerid), "LoadUser_data", .bExtra true, .extra playerid);
        
SendClientMessage(playerid, -1"Welcome back");
    }
    else
    {
        
SendClientMessage(playerid, -1"welcome it's ur first time");
    }
    return 
1;

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: 3 Guest(s)