SA-MP Forums Archive
[Help] Getting Offline Stats from YINI - 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: [Help] Getting Offline Stats from YINI (/showthread.php?tid=413654)



[Help] Getting Offline Stats from YINI - David (Sabljak) - 06.02.2013

I need help about this, exmaple i need to get information how many cash has player

example of command

Код:
CMD:checkmoney (playerid, params[])
{
	new ime[30];
	new acc[30];
	new string[128];
	if(PlayerInfo[playerid][pAdmin] < 1338) return SCM(playerid,Crvena,"{FFFFFF}[{F81414}CHFR{FFFFFF}!]{FFFFFF} Admini samo!");
	if(sscanf(params, "s[30]", ime)) return SCM(playerid,Crvena,"Koristi: {FFFFFF}/checkmoney [NICK]");
	format(acc,sizeof(acc),USER_PATH,ime);
	new INI:iniFile = INI_Open(acc);
	//NEED SOMETHING HERE
 	format(string, sizeof(string)," OFFLINE {FFFFFF}Player %s has %d$  !!! {FF0000}Admin %s", ime,PlayerName(playerid));
  	PorukaAdminu(Crvena,string);
	return 1;
}
and like enum for money is if(PlayerInfo[playerid][pMoney]