14.06.2015, 04:43
MySQL uses threaded queries so unfortunately you can't do that. You'll have to pass it through a callback and do it that way.
pawn Код:
mysql_query(sqlConnection, "SELECT MAX(gID) + 1 FROM `gangzones`", "onGetLastID");
pawn Код:
forward onGetLastID();
public onGetLastID() {
lastZoneGIDDatabase = cache_get_row_int(0, 0);
}