Skip to content

Commit

Permalink
Fix for calladmin report title showed old report id
Browse files Browse the repository at this point in the history
  • Loading branch information
Cruze03 authored Feb 14, 2023
2 parents ef4762a + 0d6f8d6 commit 86945d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripting/du_calladmin.sp
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ public void CallAdmin_OnReportPost(int client, int target, const char[] reason)

char sTrans[128];

g_iLastReportID = CallAdmin_GetReportID();

DiscordWebHook hook = new DiscordWebHook(g_sCallAdmin_Webhook);
Format(sTrans, 128, "%T", "ReportMessageTitle", LANG_SERVER, g_iLastReportID);

Expand All @@ -123,8 +125,6 @@ public void CallAdmin_OnReportPost(int client, int target, const char[] reason)
Format(sTarget, sizeof(sTarget), "[%s](http://www.steamcommunity.com/profiles/%s) (%s)", sTName, sTSteamID64, sTSteamID);
Format(sReason, sizeof(sReason), "%s", reason);

g_iLastReportID = CallAdmin_GetReportID();

Format(sReportID, sizeof(sReportID), "%i", g_iLastReportID);
Discord_EscapeString(sClient, sizeof(sClient));
Discord_EscapeString(sTarget, sizeof(sTarget));
Expand Down

0 comments on commit 86945d6

Please sign in to comment.