Skip to content

Basebans client index is invalid #1768

@dragokas

Description

@dragokas

Help us help you

  • I have checked that my issue doesn't exist yet.
  • I have tried my absolute best to reduce the problem-space and have provided the absolute smallest test-case possible.
  • I can always reproduce the issue with the provided description below.

Environment

  • Operating System version: Linux
  • Game/AppID (with version if applicable):
  • Current SourceMod version: 1.11.0.6648
  • Current SourceMod snapshot: 1.11.0.6648
  • Current Metamod: Source snapshot: 1.10.7-dev

Description

Not sure how to reproduce.

Problematic Code (or Steps to Reproduce)

Format(title, sizeof(title), "%T: %N", "Ban reason", client, playerinfo[client].banTarget);

Logs

L 05/07/2022 - 15:06:29: [SM] Exception reported: Client index 14 is invalid (arg 6)
L 05/07/2022 - 15:06:29: [SM] Blaming: sm/basebans.smx
L 05/07/2022 - 15:06:29: [SM] Call stack trace:
L 05/07/2022 - 15:06:29: [SM]   [0] Format
L 05/07/2022 - 15:06:29: [SM]   [1] Line 129, D:\builds\build-sourcemod-msvc12\windows-1.10\build\plugins\basebans/ban.sp::DisplayBanReasonMenu
L 05/07/2022 - 15:06:29: [SM]   [2] Line 268, D:\builds\build-sourcemod-msvc12\windows-1.10\build\plugins\basebans/ban.sp::MenuHandler_BanTimeList

Metadata

Metadata

Assignees

No one assigned

    Labels

    Buggeneral bugs; can be anything

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions