Skip to content

Crash when trying to change the "m_szCrosshairCodes" netprop #1484

@manicogaming

Description

@manicogaming

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: Windows 10 64-bit 2004
  • Game/AppID (with version if applicable): 730
  • Current SourceMod version: 1.11.0.6659
  • Current SourceMod snapshot: 6659
  • Current Metamod: Source snapshot: 1.12.0-dev+1147

Description

Problematic Code (or Steps to Reproduce)

#include <sourcemod>
#include <sdktools>

public void OnPluginStart()
{
  HookEventEx("player_spawn", OnPlayerSpawn);
}

public void OnPlayerSpawn(Event eEvent, const char[] szName, bool bDontBroadcast)
{
  for (int i = 1; i <= MaxClients; i++)
  {
  	if (IsClientInGame(i))
  	{    
  		SetEntPropString(GetPlayerResourceEntity(), Prop_Send, "m_szCrosshairCodes", "CSGO-m9FPN-ZHep5-OUAV7-qMUyG-xJ8nM", i);
  	}
  }
}

Logs

https://crash.limetech.org/s6vcvyovpzul

Metadata

Metadata

Assignees

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