mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 10:28:26 +00:00
update zone cache database id on zone creation
This commit is contained in:
parent
8900e4b6ff
commit
fb42a370fe
@ -4448,16 +4448,18 @@ void InsertZone(int client)
|
|||||||
|
|
||||||
Reset(client);
|
Reset(client);
|
||||||
|
|
||||||
QueryLog(gH_SQL, SQL_InsertZone_Callback, sQuery, 0);
|
QueryLog(gH_SQL, SQL_InsertZone_Callback, sQuery, gI_MapZones-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SQL_InsertZone_Callback(Database db, DBResultSet results, const char[] error, DataPack data)
|
public void SQL_InsertZone_Callback(Database db, DBResultSet results, const char[] error, any data)
|
||||||
{
|
{
|
||||||
if (results == null)
|
if (results == null)
|
||||||
{
|
{
|
||||||
LogError("Timer (zone insert) SQL query failed. Reason: %s", error);
|
LogError("Timer (zone insert) SQL query failed. Reason: %s", error);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gA_ZoneCache[data].iDatabaseID = results.InsertId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Action Timer_DrawZones(Handle Timer, any drawAll)
|
public Action Timer_DrawZones(Handle Timer, any drawAll)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user