01.01.2015, 14:22
I have this forwarded public
I want to make like it but for house so i add this
But i doesn't work
here is the enum of the house info
And
Please Help !
ReP ++
PHP код:
forward LoadUser_data(playerid,name[],value[]);
public LoadUser_data(playerid,name[],value[])
{
INI_Int("Password",PlayerInfo[playerid][pPass]);
INI_Int("Cash",PlayerInfo[playerid][pCash]);
INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
INI_Int("Kills",PlayerInfo[playerid][pKills]);
INI_Int("Deaths",PlayerInfo[playerid][pDeaths]);
INI_Int("Skin",PlayerInfo[playerid][pSkin]);
INI_Int("Ban",PlayerInfo[playerid][pBan]);
INI_Int("Score",PlayerInfo[playerid][pScore]);
INI_Int("Police",PlayerInfo[playerid][pPolice]);
INI_Int("Freeze",PlayerInfo[playerid][pFreeze]);
INI_Int("Gange",PlayerInfo[playerid][pGang]);
return 1;
}
PHP код:
forward LoadHouse(house,id[],value[]);
public LoadHouse(house,id[],value[])
{
INI_Int("Owner",HInfo[id][Owner]);
INI_Int("Owned",HInfo[id][Owned]);
INI_Int("Price",HInfo[id][Price]);
INI_Int("Float:XPos",HInfo[id][Float:XPos]);
INI_Int("Float:YPos",HInfo[id][Float:YPos]);
INI_Int("Float:ZPos",HInfo[id][Float:ZPos]);
INI_Int("VirtualWorld",HInfo[id][VirtualWorld]);
INI_Int("Text3D:HouseLabel",HInfo[id][Text3D:HouseLabel]);
return 1;
}
here is the enum of the house info
PHP код:
enum HouseInfo
{
Owner[24],
Owned,
Price,
Float:XPos,
Float:YPos,
Float:ZPos,
VirtualWorld,
Text3D:HouseLabel
}
PHP код:
new HInfo[MAX_HOUSES][HouseInfo];
ReP ++