Skip to content

Commit

Permalink
Fixed runtime errors with menus (#58)
Browse files Browse the repository at this point in the history
* Fixed runtime errors with menus

---------

Co-authored-by: Xelson <[email protected]>
  • Loading branch information
Psycrow101 and Xelson authored Aug 13, 2024
1 parent d7cfd49 commit eb999a6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/scripts/utility/kz_cups.sma
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,9 @@ public cmd_Version(id)

public cmd_MainMenu(id)
{
if (!is_user_connected(id))
return PLUGIN_HANDLED;

new szMsg[512];
formatex(szMsg, charsmax(szMsg), "%L", id, "CUPS_MAIN_TITLE");

Expand Down Expand Up @@ -361,6 +364,9 @@ public LobbyList_Handler(id, menu, item)

public cmd_Lobby(id, iLobby)
{
if (!is_user_connected(id))
return PLUGIN_HANDLED;

g_CurrentLobby[id] = iLobby;
new bool:isHost = (id == iLobby);

Expand Down

0 comments on commit eb999a6

Please sign in to comment.