Getting a Parametr From Player Account - 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: Getting a Parametr From Player Account (
/showthread.php?tid=664853)
Getting a Parametr From Player Account -
PoniStar - 13.03.2019
hi , i want to get a paramter from a user who is offline , i have their names on a file by PclanName[%d][%d] first %d is their clan id and the second %d is their ClanScores (how many score they reach for their clan!)
this is the code (i want to use their scores on string) :
dUserINT(PclanName[listitem][i]).("ClanScores");
its ok for normal names but if their name has some of these charectrs : [ , . , ( ) or ... it will show not show anything and its some how a bug whats the problem !?
Re: Getting a Parametr From Player Account -
TokicMajstor - 13.03.2019
IF YOU USE Y_INI this is how you can get things from a file of user who is offline
Код:
new string[64];
format( string, 64, "The_Folder_Where_Are_The_Users_Saved", playerid);
INI_ParseFile(string, "Load");
forward Load(playerid,name[],value[]);
public Load(playerid,name[],value[])
{
INI_Int("Thing_You_Want_To_Get_From_Player",Variable_To_Store_It);
}