Closed mostten closed 2 years ago
The original num is 2286852952, but decode num be conberted to -2008114344.
Sourcemod new api with "StringToInt64" can be use it?
Thanks for the suggestion! I've had a play with implementing this but I've encountered an issue with the new int64 natives along the way. I've submitted a PR to resolve this here but I'll have to put this on hold until it's merged.
Thanks for the suggestion! I've had a play with implementing this but I've encountered an issue with the new int64 natives along the way. I've submitted a PR to resolve this here but I'll have to put this on hold until it's merged.
I made some changes on your old version, using strings to store Int64 to make it support Int64.
Now the Sourcemod dev build 6861 was fixed with your code, Please update json script, Thanks
I've just released v4.0.0 which adds int64 support - you can find specific implementation details in the linked release notes. Here is the relevant documentation:
JSON_Object
.SetInt64
JSON_Object
.GetInt64
JSON_Array
.SetInt64
JSON_Array
.GetInt64
JSON_Array
.PushInt64
JSONCellType
.JSON_Type_Int64
Thanks for your suggestion!
The original num is 2286852952, but decode num be converted to -2008114344.