mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 10:28:26 +00:00
add a mapchooser map results print
This commit is contained in:
parent
5a5b868c29
commit
b94caead91
@ -1134,8 +1134,10 @@ public void LoadZonedMapsCallbackMixed(Database db, DBResultSet results, const c
|
||||
g_mMapList.SetValue(map, i, true);
|
||||
}
|
||||
|
||||
int resultlength, mapsadded;
|
||||
while(results.FetchRow())
|
||||
{
|
||||
resultlength++;
|
||||
results.FetchString(0, map, sizeof(map));//db mapname
|
||||
LowercaseString(map);
|
||||
|
||||
@ -1143,9 +1145,12 @@ public void LoadZonedMapsCallbackMixed(Database db, DBResultSet results, const c
|
||||
if (g_mMapList.GetValue(map, index))
|
||||
{
|
||||
g_aMapList.PushString(map);
|
||||
mapsadded++;
|
||||
}
|
||||
}
|
||||
|
||||
PrintToServer("Shavit-Mapchooser Query callback. Number of returned results: %i, Maps added to g_aMapList:%i, g_aAllMapsList.Length:%i, g_mMapList:%i", resultlength, mapsadded, g_aAllMapsList.Length, g_mMapList.Size);
|
||||
|
||||
CreateNominateMenu();
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user