Problem with YSI\y_ini
#6

Quote:
Originally Posted by ******
Посмотреть сообщение
Because you set `bPassTag` but didn't provide a callback parameter for it.
So this should work:

Код:
OnPlayerConnect(playerid)
{
  	new PlayerFile[64];
	format(PlayerFile, sizeof(PlayerFile), "/Users/%s.ini", GetName(playerid));
  	if(fexist(PlayerFile))
  	{
		INI_ParseFile(PlayerFile, "LoadUser_%s", .bExtra = true, .extra = playerid);
		//INI_Load(PlayerFile);
		print("Exists!");
  	}
        return 1;
}

forward LoadUser_data(playerid, name[], value[]);
public LoadUser_data(playerid, name[], value[])
{
	INI_Int("Kills", pInfo[playerid][pKills]);
	INI_Int("Deaths", pInfo[playerid][pDeaths]);
	INI_Int("Admin", pInfo[playerid][pAdmin]);
	INI_Int("Vip", pInfo[playerid][pVip]);
        ...
	return 0;
}
But why:

Код:
INI_ParseFile(PlayerFile, "LoadUser_%s", .bExtra = true, .extra = playerid);
instead of:

Код:
INI_ParseFile(PlayerFile, "LoadUser_data", .bExtra = true, .extra = playerid);
?
Reply


Messages In This Thread
Problem with YSI\y_ini - by andrejc999 - 12.05.2018, 18:21
Re: Problem with YSI\y_ini - by David (Sabljak) - 12.05.2018, 20:30
Re: Problem with YSI\y_ini - by andrejc999 - 12.05.2018, 20:41
Re: Problem with YSI\y_ini - by David (Sabljak) - 13.05.2018, 09:04
Re: Problem with YSI\y_ini - by andrejc999 - 13.05.2018, 13:15
Re: Problem with YSI\y_ini - by andrejc999 - 13.05.2018, 15:34

Forum Jump:


Users browsing this thread: 1 Guest(s)