Commit 745c9be1 authored by Max Maton's avatar Max Maton
Browse files

Update Lobby.sp

parent c8ce42b3
Pipeline #3538 passed with stage
in 1 minute and 23 seconds
......@@ -140,7 +140,7 @@ public void RedirectToPopulatedServer()
{
// Query for servers with more or equal than l_minplayers players.
char populatedServerQuery[256];
Format(populatedServerQuery, sizeof(populatedServerQuery), "SELECT addr FROM `LobbyDB`.`servers` WHERE players >= %i AND password=0 AND isenabled=1 AND name NOT LIKE '%LOBBY%' ORDER BY players DESC LIMIT 1;", GetConVarInt(l_minplayers));
Format(populatedServerQuery, sizeof(populatedServerQuery), "SELECT addr FROM `LobbyDB`.`servers` WHERE players >= %i AND password=0 AND isenabled=1 AND name NOT LIKE '%%LOBBY%%' ORDER BY players DESC LIMIT 1;", GetConVarInt(l_minplayers));
SQL_TQuery(hDatabase, RedirectToPopulatedServerCallback, populatedServerQuery);
}
public void RedirectToPopulatedServerCallback(Handle hDriver, Handle hResult, const char[] sError, int iData)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment