error 032 PLEASE HELP ME!!
#1

Код:
public SaveHouses()
{
	for(new a = 0; a< NHouse; a++)
	{
	    format(Query,sizeof(Query),"UPDATE `samp`.`house` SET `owner` = '%d',`enterx` = '%f',`entery` = '%f',`enterz` = '%f',`entervw` = '%d',`enterint` = '%d',`enterangle` = '%f',`exitx` = '%f',`exity` = '%f' WHERE `house`.`hid` =%d LIMIT 1;",Houses[a][Owner],
		Houses[a][EnterX],
		Houses[a][EnterY],
		Houses[a][EnterZ],
		Houses[a][EnterWorld],
		Houses[a][EnterInterior],
		Houses[a][EnterAngle],
		Houses[a][ExitX],
		Houses[a][ExitY],a);
		mysql_query(Query);

/*6438*/	format(Query,sizeof(Query),"UPDATE `samp`.`house` SET `exitz` = '%f',`exitvw` = '%d',`exitint` = '%d',`exitangle` = '%f',`owned` = '%d',`rentable` = '%d',`rentcost` = '%d',`houseprice` = '%d',`materials` = '%d',`drugs` = '%d',`money` = '%d',`locked` = '%d' WHERE `house`.`hid` =%d LIMIT 1;",
		Houses[a][ExitZ],
/*6440*/	Houses[a][ExitWorld],
		Houses[a][ExitInterior],
		Houses[a][ExitAngle],
		Houses[a][Owned],
		Houses[a][Rentable],
		Houses[a][RentCost],
		Houses[a][HousePrice],
		Houses[a][Materials],
		Houses[a][Drugs],
		Houses[a][Money],
		Houses[a][Locked],a);
		mysql_query(Query);
		//printf("locked: %d | money: %d | id: %d",Houses[i][Locked],Houses[i][Money],i);
	}
	return 1;
}
C:\Users\Tony\Desktop\Las Vegas RolePlay 0.3c\gamemodes\RGRP.pwn(6438 -- 6440) : warning 213: tag mismatch
C:\Users\Tony\Desktop\Las Vegas RolePlay 0.3c\gamemodes\RGRP.pwn(6438 -- 6440) : error 032: array index out of bounds (variable "Houses")
Reply
#2

up...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)