24.07.2014, 18:34
Title explains it all!
My INI_ParseFile:
My LoadUser_data function:
My INI_ParseFile:
pawn Код:
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
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;
}