Skip to content

Commit

Permalink
add a mapchooser map results print
Browse files Browse the repository at this point in the history
  • Loading branch information
rtldg committed Sep 20, 2021
1 parent 5a5b868 commit b94caea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions addons/sourcemod/scripting/shavit-mapchooser.sp
Original file line number Diff line number Diff line change
Expand Up @@ -1134,18 +1134,23 @@ 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);

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

Expand Down

0 comments on commit b94caea

Please sign in to comment.