YSI Error: Format specifier didn't match on inline function LoadUser_Data.
#1

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

Anyone?
Reply
#3

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)