22.07.2016, 09:37
I don't know what "siuksle" is for but you only assign a value to it, you never actually use it. With threaded queries, the code becomes:
PHP код:
LoadFuelInfo() return mysql_tquery(g_iHandle, "SELECT * FROM `duomenys`", "OnFuelInfoLoad", "");
forward OnFuelInfoLoad();
public OnFuelInfoLoad()
{
new siuksle;
for (new i, j = cache_get_row_count(); i != j; i++) // loops through the rows
{
// cache_get_row_int(rowid, fieldid);
siuksle = cache_get_row_int(i, 0);
vBakas[i] = cache_get_row_int(i, 1);
vValgo[i] = cache_get_row_int(i, 2);
vSlotai[i] = cache_get_row_int(i, 3);
}
}