Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix for [Surftimer] SQL Error (db_selectPlayerRankCallback) error #299

Merged
merged 2 commits into from
Sep 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions addons/sourcemod/scripting/surftimer/hooks.sp
Original file line number Diff line number Diff line change
Expand Up @@ -736,6 +736,8 @@ public Action OnMultipleTrigger3(int entity, int client)

public Action OnTriggerOutput(const char[] output, int caller, int activator, float delay)
{
if (!IsValidClient(client)) return Plugin_Continue;

// Block Output when player use a teleport command
if(g_bTeleByCommand[activator])
{
Expand Down
2 changes: 1 addition & 1 deletion addons/sourcemod/scripting/surftimer/sql.sp
Original file line number Diff line number Diff line change
Expand Up @@ -7785,7 +7785,7 @@ public void db_selectPlayerRank(int client, int rank, char szSteamId[32])
{
char szQuery[1024];

if (StrContains(szSteamId, "none", false)!= -1) // Select Rank Number
if (StrContains(szSteamId, "none", false)!= -1 && rank > 0) // Select Rank Number
{
g_rankArg[client] = rank;
rank -= 1;
Expand Down