SA-MP Forums Archive
Reading from y_ini - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Reading from y_ini (/showthread.php?tid=446278)



Reading from y_ini - Kolten - 25.06.2013

Hi, i need help, i want to read from all online and OFFLINE players this "PlayerInfo[playerid][pCS_Kills];" and i don't know how to do that...can i get example? tnx


Re: Reading from y_ini - JaKe Elite - 25.06.2013

Not sure, Maybe possible or impossible.
But for now, My post is

"You might need MySQL for that".


Re: Reading from y_ini - dEcooR - 25.06.2013

maybe you can try that

Код:
if(IsPlayerConnected(playerid))
{
      INI_ParseFile(YourPathHere, "Load_%s", .bExtra = true, .extra = playerid);
}
else continue;
also you need the public of Load

Код:
forward Load_data(playerid,name[],value[]);
public Load_data(playerid,name[],value[]) 
{
	INI_Int("Kills",pInfo[playerid][your kills]);
        return 1;
}



Re: Reading from y_ini - Cjgogo - 25.06.2013

Quote:
Originally Posted by dEcooR
Посмотреть сообщение
maybe you can try that

Код:
if(IsPlayerConnected(playerid))
{
      INI_ParseFile(YourPathHere, "Load_%s", .bExtra = true, .extra = playerid);
}
else continue;
also you need the public of Load

Код:
forward Load_data(playerid,name[],value[]);
public Load_data(playerid,name[],value[]) 
{
	INI_Int("Kills",pInfo[playerid][your kills]);
        return 1;
}
Dude, that is for when the player is connected, HE ASKED if there's any way to do this when the player is DISCONNECTED!


Re: Reading from y_ini - dEcooR - 25.06.2013

Yeee hmm,so if he disconected