Help me Please
#1

How to do this?

Код:
public LoadHouse(houseid, name[], value[])
{
	if(!fexist(HousePath(houseid))) return 0;
	INI_Float("EnterX",HouseInfo[houseid][hEnterX]);
	INI_Float("EnterY",HouseInfo[houseid][hEnterY]);
	INI_Float("EnterZ",HouseInfo[houseid][hEnterZ]);
	INI_Float("ExitX",HouseInfo[houseid][hExitX]);
	INI_Float("ExitY",HouseInfo[houseid][hExitY]);
	INI_Float("ExitZ",HouseInfo[houseid][hExitZ]);
	INI_Float("InX",HouseInfo[houseid][hInX]);
	INI_Float("InY",HouseInfo[houseid][hInY]);
	INI_Float("InZ",HouseInfo[houseid][hInZ]);
	INI_Float("OutX",HouseInfo[houseid][hOutX]);
	INI_Float("OutY",HouseInfo[houseid][hOutY]);
	INI_Float("OutZ",HouseInfo[houseid][hOutZ]);
	INI_Int("InsideInt",HouseInfo[houseid][hInsideInt]);
	INI_Int("InsideVir",HouseInfo[houseid][hInsideVir]);
	INI_Int("OutsideInt",HouseInfo[houseid][hOutsideInt]);
	INI_Int("OutsideVir",HouseInfo[houseid][hOutsideVir]);
	INI_Bool("Owned",HouseInfo[houseid][hOwned]);
	INI_String("Owner",HouseInfo[houseid][hOwner],MAX_PLAYER_NAME);
	INI_Int("InCheckpoint",HouseInfo[houseid][hInCheckpoint]);
    INI_Int("OutCheckpoint",HouseInfo[houseid][hOutCheckpoint]);
    INI_Float("InAngle",HouseInfo[houseid][hInAngle]);
    INI_Float("OutAngle",HouseInfo[houseid][hOutAngle]);
	INI_Int("Price",HouseInfo[houseid][hPrice]);
	INI_Bool("Opened",HouseInfo[houseid][hOpened]);
	INI_String("Password",HouseInfo[houseid][hPassword],20);
	INI_Bool("Passworded",HouseInfo[houseid][hPassworded]);
	INI_String("Key1",HouseInfo[houseid][Key1],MAX_PLAYER_NAME);
	INI_Bool("KeyGiven1",HouseInfo[houseid][key1]);
	INI_String("Key2",HouseInfo[houseid][Key2],MAX_PLAYER_NAME);
	INI_Bool("KeyGiven2",HouseInfo[houseid][key2]);
	INI_String("Key3",HouseInfo[houseid][Key3],MAX_PLAYER_NAME);
	INI_Bool("KeyGiven3",HouseInfo[houseid][key3]);
	INI_String("Key4",HouseInfo[houseid][Key4],MAX_PLAYER_NAME);
	INI_Bool("KeyGiven4",HouseInfo[houseid][key4]);
	INI_String("Key5",HouseInfo[houseid][Key5],MAX_PLAYER_NAME);
	INI_Bool("KeyGiven5",HouseInfo[houseid][key5]);
	INI_Bool("ForSale",HouseInfo[houseid][ForSale]);
	INI_Int("SalePrice",HouseInfo[houseid][SalePrice]);
	INI_String("HouseName",HouseInfo[houseid][HouseName],MAX_ZONE_NAME);
	return 1;
}
i get this error's

Код:
D:\Revolution DM\gamemodes\RDM.pwn(5087) : error 001: expected token: ")", but found "["
D:\Revolution DM\gamemodes\RDM.pwn(5087) : warning 215: expression has no effect
D:\Revolution DM\gamemodes\RDM.pwn(5087) : error 001: expected token: ";", but found "]"
D:\Revolution DM\gamemodes\RDM.pwn(5087) : error 029: invalid expression, assumed zero
D:\Revolution DM\gamemodes\RDM.pwn(5087) : fatal error 107: too many error messages on one line
Anyone can help me?
Reply
#2

I thought things for "Owned" and so on would be a Variable, not a Boolean

It'd help if you can show me the line that's causing the problem in there
Reply
#3

the line "Housename" causing the problem
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)