YSI Error: Format specifier didn't match on inline function LoadUser_Data. - 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: YSI Error: Format specifier didn't match on inline function LoadUser_Data. (
/showthread.php?tid=527823)
YSI Error: Format specifier didn't match on inline function LoadUser_Data. -
LivingLikeYouDo - 24.07.2014
Title explains it all!
My INI_ParseFile:
pawn Код:
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
My LoadUser_data function:
pawn Код:
forward LoadUser_data(playerid,name[],value[]);
public LoadUser_data(playerid,name[],value[])
{
INI_Int("Password", pInfo[playerid][Password]);
INI_Int("Cash", pInfo[playerid][Cash]);
INI_Int("Admin", pInfo[playerid][Admin]);
INI_Int("Membership", pInfo[playerid][Membership]);
INI_Float("PosX", pInfo[playerid][PosX]);
INI_Float("PosY", pInfo[playerid][PosY]);
INI_Float("PosZ", pInfo[playerid][PosZ]);
INI_Int("Interior", pInfo[playerid][Interior]);
INI_Int("VirtualWorld", pInfo[playerid][VirtualWorld]);
INI_Int("Age", pInfo[playerid][Age]);
INI_Int("Gender", pInfo[playerid][Gender]);
INI_Int("Skin", pInfo[playerid][Skin]);
return 1;
}
Re: YSI Error: Format specifier didn't match on inline function LoadUser_Data. -
LivingLikeYouDo - 26.07.2014
Anyone?
Re : YSI Error: Format specifier didn't match on inline function LoadUser_Data. -
S4t3K - 26.07.2014
Haven't ever used y_ini but I think the problem is that under "INI_ParseFile", you just put "playerid" as extra (parameter/argument) but your public function takes 3 non optionnal parameters.
Try to add the name and the value as arrays in extra and tell me.