Skip to content

Commit

Permalink
Increase specmenu buffer (Fix #272)
Browse files Browse the repository at this point in the history
  • Loading branch information
good-live committed Jan 3, 2018
1 parent 03e1e58 commit 961cc18
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions addons/sourcemod/scripting/ttt/ttt_spec_menu.sp
Expand Up @@ -120,19 +120,19 @@ void ShowSpecMenu(int client)

if (TTT_IsClientValid(GetObservTarget(client)) && !IsFakeClient(client))
{
char sPlayer[128];
char sPlayer[MAX_NAME_LENGTH];
Format(sPlayer, sizeof(sPlayer), "%T\n--------------------", "SpecMenu: Player", client, GetObservTarget(client));
menu.AddItem("player", sPlayer, ITEMDRAW_DISABLED);
}

char sNext[32], sPrev[32];
char sNext[64], sPrev[64];
Format(sNext, sizeof(sNext), "%T", "SpecMenu: Next", client);
Format(sPrev, sizeof(sPrev), "%T\n--------------------", "SpecMenu: Prev", client);

menu.AddItem("next", sNext);
menu.AddItem("prev", sPrev);

char sItem[32];
char sItem[64];
if (g_bMutedAlive[client])
{
Format(sItem, sizeof(sItem), "%T", "SpecMenu: Unmute Alive", client);
Expand Down

0 comments on commit 961cc18

Please sign in to comment.