Reading from y_ini
#1

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
Reply
#2

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

"You might need MySQL for that".
Reply
#3

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;
}
Reply
#4

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!
Reply
#5

Yeee hmm,so if he disconected
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)