YSI\y_ini Order Question?
#6

Код:
                new INI:File = INI_Open(UserPath(playerid));
                INI_SetTag(File,"data");
                INI_WriteInt(File,"Password",udb_hash(inputtext));
                INI_WriteInt(File,"Money",0);
                INI_WriteInt(File,"Admin",0);
                INI_Close(File);
   
                gPlayerLoggedIn[playerid] = 1;
This is for DIALOG_REGISTER case!

Код:
function SaveUser_data(playerid)
{
        new INI:File = INI_Open(UserPath(playerid));
	INI_SetTag(File,"data");
	INI_WriteInt(File,"Money",GetPlayerMoney(playerid));
	INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
	INI_Close(File);
}
This is for savinguserdata (under OnPLayerDisconnect)
Reply


Messages In This Thread
YSI\y_ini Order Question? - by Stefcaaaa - 11.06.2018, 23:35
Re: YSI\y_ini Order Question? - by Exhibit - 11.06.2018, 23:40
Re: YSI\y_ini Order Question? - by Stefcaaaa - 11.06.2018, 23:42
Re: YSI\y_ini Order Question? - by Stefcaaaa - 11.06.2018, 23:44
Re: YSI\y_ini Order Question? - by Exhibit - 11.06.2018, 23:49
Re: YSI\y_ini Order Question? - by Stefcaaaa - 11.06.2018, 23:53
Re: YSI\y_ini Order Question? - by Exhibit - 11.06.2018, 23:56
Re: YSI\y_ini Order Question? - by Stefcaaaa - 11.06.2018, 23:57
Re: YSI\y_ini Order Question? - by Exhibit - 11.06.2018, 23:58
Re: YSI\y_ini Order Question? - by Stefcaaaa - 11.06.2018, 23:59

Forum Jump:


Users browsing this thread: 1 Guest(s)