01.10.2014, 08:27
Whenever I call this it doesn't execute, no line's inside it at all execute..
pawn Код:
public saveHouse(i)
{
new query[2056];
mysql_format(propertiesLine, query, sizeof(query), "UPDATE `houses` SET cID='%d', Created='%d', Address='%e', Owner='%e', Owned='%d', Locked='%d'",\
HouseData[i][cID], HouseData[i][Created], HouseData[i][Address], HouseData[i][Owner], HouseData[i][Owned], HouseData[i][Locked]);
mysql_format(propertiesLine, query, sizeof(query), "%s, hX='%f', hY='%f', hZ='%f', hA='%f', signX='%f', signY='%f', signZ='%f', signA='%f'",\
query, HouseData[i][hX], HouseData[i][hY], HouseData[i][hZ], HouseData[i][hA], HouseData[i][signX], HouseData[i][signY], HouseData[i][signZ], HouseData[i][signA]);
mysql_format(propertiesLine, query, sizeof(query), "%s, Level='%d', Value='%d', ForSale='%d', SalePrice='%d', Rent='%d', RentPrice='%d' WHERE cID='%d'",\
query, HouseData[i][Level], HouseData[i][Value], HouseData[i][ForSale], HouseData[i][SalePrice], HouseData[i][Rent], HouseData[i][RentPrice], i);
mysql_tquery(propertiesLine, query, "", "");
return 1;
}