clugg / sm-json

A pure SourcePawn JSON encoder/decoder.
GNU General Public License v3.0
82 stars 8 forks source link

Fix SM 1.8 compilation #9

Closed budziam closed 4 years ago

budziam commented 4 years ago

Attempt to use this library with sourcemod 1.8.x ends up with following error

Compiling /tmp/sources/shopsms.sp ... /tmp/addons/sourcemod/scripting/include/json.inc(649) : error 001: expected token: ";", but found "."
/tmp/addons/sourcemod/scripting/include/json.inc(649) : error 029: invalid expression, assumed zero
/tmp/addons/sourcemod/scripting/include/json.inc(649) : error 017: undefined symbol "Clear"
/tmp/addons/sourcemod/scripting/include/json.inc(649) : fatal error 189: too many error messages on one line

This PR fixes that issue.