11.11.2010, 13:42
I'm having a problem with saving (updating) ints/floats.
Theres no problem with saving strings.
Anyway, I'm using the query builder..
Its not the whole code, but its just a part of it, (float, int and string saving).
Any ideas?
Theres no problem with saving strings.
Anyway, I'm using the query builder..
pawn Код:
public MySQLSaveHouse(houseid)
{
MySQLCheckConnection();
format(query, MAX_STRING, "UPDATE houses SET ");
MySQLUpdateFlo(query, HouseInfo[houseid][hSQLID], "Entrance_X", HouseInfo[houseid][hEntrancex], MYSQL_ID_HOUSE);
MySQLUpdateFlo(query, HouseInfo[houseid][hSQLID], "Entrance_Y", HouseInfo[houseid][hEntrancey], MYSQL_ID_HOUSE);
MySQLUpdateFlo(query, HouseInfo[houseid][hSQLID], "Entrance_Z", HouseInfo[houseid][hEntrancez], MYSQL_ID_HOUSE);
MySQLUpdateInt(query, HouseInfo[houseid][hSQLID], "Price", HouseInfo[houseid][hPrice], MYSQL_ID_HOUSE);
MySQLUpdateStr(query, HouseInfo[houseid][hSQLID], "Description", HouseInfo[houseid][hDescription], MYSQL_ID_HOUSE);
MySQLUpdateFinish(query, HouseInfo[houseid][hSQLID], MYSQL_ID_HOUSE);
return 1;
}
Any ideas?