16.10.2012, 19:04
I am getting the following errors when I compile my script:
There is allot and that is why I only put the thread topic as the prominent error.
Here is the lines it is having problems with, ignore that it is a public, it is not supposed to be it is only like that as error messages would not show when the code was inside of a stock
P.S I am now a huge clucker
pawn Код:
Y:\Documents\SpectralRP\gamemodes\spectralrp.pwn(272) : error 017: undefined symbol "name"
Y:\Documents\SpectralRP\gamemodes\spectralrp.pwn(272) : error 017: undefined symbol "value"
Y:\Documents\SpectralRP\gamemodes\spectralrp.pwn(273) : error 017: undefined symbol "name"
Y:\Documents\SpectralRP\gamemodes\spectralrp.pwn(273) : error 017: undefined symbol "value"
Y:\Documents\SpectralRP\gamemodes\spectralrp.pwn(274) : error 017: undefined symbol "name"
Y:\Documents\SpectralRP\gamemodes\spectralrp.pwn(274) : error 017: undefined symbol "value"
Y:\Documents\SpectralRP\gamemodes\spectralrp.pwn(274) : warning 213: tag mismatch
Y:\Documents\SpectralRP\gamemodes\spectralrp.pwn(275) : error 017: undefined symbol "name"
Y:\Documents\SpectralRP\gamemodes\spectralrp.pwn(275) : error 017: undefined symbol "value"
Y:\Documents\SpectralRP\gamemodes\spectralrp.pwn(275) : warning 213: tag mismatch
Y:\Documents\SpectralRP\gamemodes\spectralrp.pwn(276) : error 017: undefined symbol "name"
Y:\Documents\SpectralRP\gamemodes\spectralrp.pwn(276) : error 017: undefined symbol "value"
Y:\Documents\SpectralRP\gamemodes\spectralrp.pwn(276) : warning 213: tag mismatch
Y:\Documents\SpectralRP\gamemodes\spectralrp.pwn(277) : error 017: undefined symbol "name"
Y:\Documents\SpectralRP\gamemodes\spectralrp.pwn(277) : error 017: undefined symbol "value"
Y:\Documents\SpectralRP\gamemodes\spectralrp.pwn(278) : error 017: undefined symbol "name"
Y:\Documents\SpectralRP\gamemodes\spectralrp.pwn(278) : error 035: argument type mismatch (argument 2)
Here is the lines it is having problems with, ignore that it is a public, it is not supposed to be it is only like that as error messages would not show when the code was inside of a stock
pawn Код:
public LoadHouses()
{
new file[60],houseowner[24];
for(new i = 0; i < MAX_HOUSES;i++)
{
format(file,sizeof(file),"Houses/%i.ini",i);
if(!fexist(file)) continue;
new INI:ini = INI_Open(file);
INI_Int("Price", HInfo[i][Price]);
INI_Int("Owned", HInfo[i][Owned]);
INI_Int("XPos", HInfo[i][XPos]);
INI_Int("YPos", HInfo[i][YPos]);
INI_Int("ZPos", HInfo[i][ZPos]);
INI_Int("VirtualWorld", HInfo[i][VirtualWorldID]);
INI_String("Owner", houseowner, MAX_PLAYER_NAME);
format(HInfo[i][Owner],24,"%s",houseowner);
HouseEnter[i] = CreateDynamicCP(HInfo[i][XPos],HInfo[i][YPos],HInfo[i][ZPos],1.5,HInfo[i][VirtualWorldID]);
HouseExit[i] = CreateDynamicCP(443.9237,509.4609,1001.4195,1.5,HInfo[i][VirtualWorldID]);
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][VirtualWorldID]);
HouseCount++;
INI_Close(ini);
}
return 1;
}