Commit 6f707f24 authored by Neoony's avatar Neoony
Browse files

v0.5.1 -Fixed lobby going into backup redirect on vote start

parent 8f0cfaa3
Pipeline #12626 passed with stages
in 9 minutes
......@@ -111,4 +111,7 @@
- Rework some SQL to work with multiple row results in single query, instead of SQL query per each server - This improves performance and makes SQL data less prone to errors
- Servers are now sorted randomly in the vote menu
- Many small bugfixes
- Many small improvements
\ No newline at end of file
- Many small improvements
**v0.5.1**
- Fixed lobby going into backup redirect on vote start
\ No newline at end of file
......@@ -23,7 +23,7 @@
#include <cURL>
#include <SteamWorks>
#define PluginVer "v0.5"
#define PluginVer "v0.5.1"
public Plugin myinfo =
{
......@@ -1411,16 +1411,6 @@ public Action QueryServersData()
{
PrintToServer("[L] Need to query, but db is down");
}
if (rowCount == 0)
{
if (GetConVarInt(l_debug) == 1)
{
PrintToServer("[L] No servers online");
}
PrintToChatAll("\x04[L] \x01No servers show up online, Redirecting players to a Backup server in\x073399ff 5\x01 seconds");
BackupRedirectTimer = CreateTimer(5.0, BackupRedirectTmr);
}
}
public Action SCommand_LQuery(int args)
......@@ -1492,10 +1482,21 @@ public void InfoOfServer(Handle hDriver, Handle hResult, const char[] sError, in
rowNumber++;
}
rowCount = SQL_GetRowCount(hResult);
if (rowCount == 0)
{
if (GetConVarInt(l_debug) == 1)
{
PrintToServer("[L] No servers online");
}
PrintToChatAll("\x04[L] \x01No servers show up online, Redirecting players to a Backup server in\x073399ff 5\x01 seconds");
BackupRedirectTimer = CreateTimer(5.0, BackupRedirectTmr);
}
// Use SQL_FetchRow(hResult) to fetch a row
// and then SQL_FetchInt(hResult, 0) to get the first column in the fetched row of the result
}
if (hDatabase == null && GetConVarInt(l_debug) == 1)
{
PrintToServer("[L] Need to fetch, but db is down");
......
......@@ -4,20 +4,10 @@
{
"Version"
{
"Latest" "v0.5"
"Latest" "v0.5.1"
}
"Notes" "Update License"
"Notes" "Add cvar l_botsenabled to enable/disable bots and also bots on/off vote management"
"Notes" "Add appid/game detection to allow detecting UE4 server, which discord bot can use to separate the servers in !srv"
"Notes" "Also excluded UE4 servers in srcPires Lobby voting"
"Notes" "Add fast refreshing for maps and bots"
"Notes" "Added Hint box for vote status instead of HUD message, as HUD message was ugly"
"Notes" "Added sound when server was selected by vote"
"Notes" "Rework some SQL to work with multiple row results in single query, instead of SQL query per each server - This improves performance and makes SQL data less prone to errors"
"Notes" "Servers are now sorted randomly in the vote menu"
"Notes" "Many small bugfixes"
"Notes" "Many small improvements"
"Notes" "Fixed lobby going into backup redirect on vote start"
}
"Files"
......
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