how to fix this error? 2 errrors
#1

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.
Reply
#2

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

Oh my mistake
Reply
#4

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
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)