Skip to content

Commit

Permalink
Fixed missing at least 1 parameter translation error
Browse files Browse the repository at this point in the history
  • Loading branch information
Cruze03 authored Apr 10, 2023
1 parent 46b246d commit e82a905
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripting/du_calladmin.sp
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,10 @@ public void CallAdmin_OnReportPost(int client, int target, const char[] reason)

char sTrans[128];

DiscordWebHook hook = new DiscordWebHook(g_sCallAdmin_Webhook);

g_iLastReportID = CallAdmin_GetReportID();

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

hook.SetContent(sTrans);
Expand Down Expand Up @@ -158,4 +159,4 @@ public void CallAdmin_OnReportPost(int client, int target, const char[] reason)
hook.Send();

DisposeObject(hook);
}
}

0 comments on commit e82a905

Please sign in to comment.