PHP код:
stock LoadHouses()
{
new file[60],houseowner[24];
for(new i = 0; i < MAX_HOUSES;i++)
{
format(file,sizeof(file),"FAdmin/houses/%i.ini",i);
if(!INI_Exist(file)) continue;
INI_Open(file);
HInfo[i][Price] = INI_ReadInt("Price");
HInfo[i][Owned] = INI_ReadInt("Owned");
HInfo[i][XPos] = INI_ReadInt("XPos");.
HInfo[i][YPos] = INI_ReadInt("YPos");
HInfo[i][ZPos] = INI_ReadInt("ZPos");
HInfo[i][VirtualWorld] = INI_ReadInt("VirtualWorld");
INI_ReadString(houseowner,"Owner");
format(HInfo[i][Owner],24,"%s",houseowner);
HouseEnter[i] = CreatePickup(1283, 1, HInfo[i][XPos],HInfo[i][YPos],HInfo[i][ZPos],HInfo[i][VirtualWorld]);
HouseExit[i] = CreatePickup(1318, 1, 443.9237,509.4609,1001.4195,HInfo[i][VirtualWorld]);
new labelstring[100];
switch(HInfo[i][Owned])
{
case 0:{format(labelstring,sizeof(labelstring),"Owned: No \nPrice: %i",HInfo[i][Price]);}
case 1:{format(labelstring,sizeof(labelstring),"Owned: Yes \nPrice: %i \nOwner: %s",HInfo[i][Price],HInfo[i][Owner]);}
}
HInfo[i][HouseLabel] = Create3DTextLabel(labelstring,0xFF0000FF,HInfo[i][XPos],HInfo[i][YPos],HInfo[i][ZPos],25.0,HInfo[i][VirtualWorld]);
HouseCount++;
INI_Close();
}
return 1;
}
PHP код:
D:\MyServer\Server\gamemodes\new.pwn(737) : error 017: undefined symbol "INI_Exist"
D:\MyServer\Server\gamemodes\new.pwn(739) : error 017: undefined symbol "INI_ReadInt"
D:\MyServer\Server\gamemodes\new.pwn(740) : error 017: undefined symbol "INI_ReadInt"
D:\MyServer\Server\gamemodes\new.pwn(741) : error 017: undefined symbol "INI_ReadInt"
D:\MyServer\Server\gamemodes\new.pwn(741) : error 029: invalid expression, assumed zero
D:\MyServer\Server\gamemodes\new.pwn(742) : error 017: undefined symbol "INI_ReadInt"
D:\MyServer\Server\gamemodes\new.pwn(743) : error 017: undefined symbol "INI_ReadInt"
D:\MyServer\Server\gamemodes\new.pwn(744) : error 017: undefined symbol "INI_ReadInt"
D:\MyServer\Server\gamemodes\new.pwn(745) : error 017: undefined symbol "INI_ReadString"