CounterStrikeSharp icon indicating copy to clipboard operation
CounterStrikeSharp copied to clipboard

ConVar.StringValue returns garbage

Open STL1te opened this issue 4 months ago • 2 comments

var hostname = ConVar.Find("hostname");
Console.WriteLine($"{hostname.Name} | {hostname.Type} | {hostname.Description} | {hostname.StringValue}");

Prints:

hostname | String | Hostname for server. | ????

STL1te avatar Aug 22 '25 11:08 STL1te

there was a discussion about convar stringvalues on the AM discord server so we might need to update https://github.com/roflmuffin/CounterStrikeSharp/blob/main/src/scripting/natives/natives_convars.cpp#L118-L141 unless there will be a change in the hl2sdk

KillStr3aK avatar Aug 22 '25 16:08 KillStr3aK

Possibly Related: #1032

ELDment avatar Sep 16 '25 15:09 ELDment