add a mapchooser map results print

This commit is contained in:
rtldg 2021-09-20 21:11:33 +00:00
parent 5a5b868c29
commit b94caead91

View File

@ -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();
}