smilz0 / Left4Lib

VScript library used by my addons
https://steamcommunity.com/sharedfiles/filedetails/?id=2634208272
9 stars 0 forks source link

Wrong type of Cvar value will cause error #5

Closed 4512369781 closed 3 months ago

4512369781 commented 5 months ago

should use Convars.GetFloat() replace Convars.GetStr() in ::Left4Utils.GetMaxAmmo

if a Cvar been set to wrong type value, 'Convars.GetStr("CVAR").tointeger();' will throw error: AN ERROR HAS OCCURED [cannot convert the string].

smilz0 commented 3 months ago

Sorry man i completely missed this one.