SA-MP Forums Archive
how to fix this error? 2 errrors - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: how to fix this error? 2 errrors (/showthread.php?tid=144648)



how to fix this error? 2 errrors - hardstop - 28.04.2010

C:\Documents and Settings\hardstop\Desktop\server\gamemodes\server0 .pwn(65) : error 017: undefined symbol "houseinfo"
C:\Documents and Settings\hardstop\Desktop\server\gamemodes\server0 .pwn(65) : error 009: invalid array size (negative, zero or out of bounds)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.


Line (65) is : new HouseInfo[MAX_HOUSES][houseinfo]; //It saves all the info in this variable.


Re: how to fix this error? 2 errrors - Fj0rtizFredde - 28.04.2010

Looks like you forgot the:
pawn Код:
enum houseinfo
{
Price,
Owner
};
If you understand :P


Re: how to fix this error? 2 errrors - hardstop - 28.04.2010

Oh my mistake


Re: how to fix this error? 2 errrors - hardstop - 28.04.2010

amm not again..


Код:
enum houseinfo
{
	HouseNames[60], //To save into the file
	HouseCost, //The house cost
	HouseOwner[24], // The house owners Name
    Float:PickupX, // PickupX
    Float:PickupY, //PickupY
    Float:PickupZ, //PickupZ
    Float:TeleX, //The house location
    Float:TeleY, //The house location
    Float:TeleZ, //The house location
	Interior, //The house Interior
    HouseSell, //House sell price
    Owned,
    Virtual
}