CounterStrikeSharp
CounterStrikeSharp copied to clipboard
ConVar.StringValue returns garbage
var hostname = ConVar.Find("hostname");
Console.WriteLine($"{hostname.Name} | {hostname.Type} | {hostname.Description} | {hostname.StringValue}");
Prints:
hostname | String | Hostname for server. | ????
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
Possibly Related: #1032