12.05.2016, 05:57
I am using SQLite improved by Slice to check if there are any errors or somethin when the SQL tries to execute a query or free's a result. While I am running the server, I get these spamming messages @ OnGameModeInit code.
I have no idea on how to fix it. But this is what I do under OnGameModeInit callback,
And this is one of the example codes on how do I code them (LoadHouses for example)
Am I doing something wrong here? I have used ReneG's ATM System's way on loading the datas (but I found out that the IDs are based upon from the rows not the ID row, if y'know what I mean).
Any helps would be appreciated.
Код:
[13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full! [13:56:32] SQLitei Warning: (db_autofree_result) The autofree pool is full!
PHP код:
CheckServer(); // Y_INI, ignore
for(new c; c < MAX_FACTIONS; c++)
{
LoadFactions(c);
LoadFacPay(c);
}
for(new c; c < MAX_DEALERSHIPS; c++)
{
LoadDealerShips(c);
}
for(new c; c < MAX_IMPOUNDS; c++)
{
LoadImpounds(c);
}
LoadDynamicMapIcons(); // Not SQLite ignore
LoadDynamicDoors(); // Not SQLite ignore
LoadGates(); // Not SQLite ignore
for(new c; c < MAX_HOUSES; c++)
{
LoadHouses(c);
LoadHousesInventory(c);
}
for(new c; c < MAX_ARRESTS; c++)
{
Arrest_Load(c);
}
PHP код:
stock LoadHouses(i)
{
new
query[256],
DBResult:dbresult,
field[20]
;
format(query, sizeof(query), "SELECT * FROM `houses` WHERE `id` = %d", i);
dbresult = db_query(database, query);
if(db_num_rows(dbresult))
{
db_get_field_assoc(dbresult, "owner", field, sizeof(field)); format(HouseInfo[i][hOwner], 92, field);
db_get_field_assoc(dbresult, "address", field, sizeof(field)); format(HouseInfo[i][hAddress], 92, field);
db_get_field_assoc(dbresult, "forsale", field, sizeof(field)); HouseInfo[i][hForSale] = strval(field);
db_get_field_assoc(dbresult, "price", field, sizeof(field)); HouseInfo[i][hPrice] = strval(field);
db_get_field_assoc(dbresult, "x", field, sizeof(field)); HouseInfo[i][housePos][0] = floatstr(field);
db_get_field_assoc(dbresult, "y", field, sizeof(field)); HouseInfo[i][housePos][1] = floatstr(field);
db_get_field_assoc(dbresult, "z", field, sizeof(field)); HouseInfo[i][housePos][2] = floatstr(field);
db_get_field_assoc(dbresult, "a", field, sizeof(field)); HouseInfo[i][housePos][3] = floatstr(field);
db_get_field_assoc(dbresult, "ix", field, sizeof(field)); HouseInfo[i][houseInt][0] = floatstr(field);
db_get_field_assoc(dbresult, "iy", field, sizeof(field)); HouseInfo[i][houseInt][1] = floatstr(field);
db_get_field_assoc(dbresult, "iz", field, sizeof(field)); HouseInfo[i][houseInt][2] = floatstr(field);
db_get_field_assoc(dbresult, "ia", field, sizeof(field)); HouseInfo[i][houseInt][3] = floatstr(field);
db_get_field_assoc(dbresult, "hox", field, sizeof(field)); HouseInfo[i][houseObjectPos][0] = floatstr(field);
db_get_field_assoc(dbresult, "hoy", field, sizeof(field)); HouseInfo[i][houseObjectPos][1] = floatstr(field);
db_get_field_assoc(dbresult, "hoz", field, sizeof(field)); HouseInfo[i][houseObjectPos][2] = floatstr(field);
db_get_field_assoc(dbresult, "hoa", field, sizeof(field)); HouseInfo[i][houseObjectPos][3] = floatstr(field);
db_get_field_assoc(dbresult, "interior", field, sizeof(field)); HouseInfo[i][houseInterior] = strval(field);
db_get_field_assoc(dbresult, "exteriorint", field, sizeof(field)); HouseInfo[i][houseExteriorInt] = strval(field);
db_get_field_assoc(dbresult, "exteriorvw", field, sizeof(field)); HouseInfo[i][houseExteriorVW] = strval(field);
db_get_field_assoc(dbresult, "locked", field, sizeof(field)); HouseInfo[i][houseLocked] = strval(field);
db_get_field_assoc(dbresult, "money", field, sizeof(field)); HouseInfo[i][houseMoney] = strval(field);
db_get_field_assoc(dbresult, "sx", field, sizeof(field)); HouseInfo[i][houseStore][0] = floatstr(field);
db_get_field_assoc(dbresult, "sy", field, sizeof(field)); HouseInfo[i][houseStore][1] = floatstr(field);
db_get_field_assoc(dbresult, "sz", field, sizeof(field)); HouseInfo[i][houseStore][2] = floatstr(field);
House_Refresh(i);
ServerInfo[total_houses]++;
}
db_free_result(dbresult);
return 1;
}
Any helps would be appreciated.