Stock[REP++]
#1

I have this stock
PHP код:
stock LoadHouses()
{
new 
file[60],houseowner[24];
for(new 
0MAX_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(12831HInfo[i][XPos],HInfo[i][YPos],HInfo[i][ZPos],HInfo[i][VirtualWorld]);
HouseExit[i] = CreatePickup(13181443.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;

When i compile it it compiles but when i add this OnGameModInit
PHP код:
LoadHouses(); 
It gives me these errors
PHP код:
D:\MyServer\Server\gamemodes\new.pwn(737) : error 017undefined symbol "INI_Exist"
D:\MyServer\Server\gamemodes\new.pwn(739) : error 017undefined symbol "INI_ReadInt"
D:\MyServer\Server\gamemodes\new.pwn(740) : error 017undefined symbol "INI_ReadInt"
D:\MyServer\Server\gamemodes\new.pwn(741) : error 017undefined symbol "INI_ReadInt"
D:\MyServer\Server\gamemodes\new.pwn(741) : error 029invalid expressionassumed zero
D
:\MyServer\Server\gamemodes\new.pwn(742) : error 017undefined symbol "INI_ReadInt"
D:\MyServer\Server\gamemodes\new.pwn(743) : error 017undefined symbol "INI_ReadInt"
D:\MyServer\Server\gamemodes\new.pwn(744) : error 017undefined symbol "INI_ReadInt"
D:\MyServer\Server\gamemodes\new.pwn(745) : error 017undefined symbol "INI_ReadString" 
Please Help i will REP
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)