st_of_dec Newbie cheater Reputation: 0
Joined: 04 Jan 2018 Posts: 10 Location: AUS
|
Posted: Fri Mar 15, 2019 12:54 am Post subject: Issue between encode\decode function and negative numbers |
|
|
Hey guys,
last time I posted a question about how to encode my script and finally got solved with this thread.
Thread ID is 609124, I can not post url yet ...
Later another problem came out. I found that when I replace those two dll file, my script somehow could not output negative numbers.
Here are some examples.
Code: |
local t = {-2341,34132,-13}
local t2 = {a = 1, b = {c = -312.000,d = -4222}}
local t3 = {a = 1, b = {c = -312.100,d = -4222.9898977}}
print(t[1])
print(t2.b.c)
print(t3.b.c)
print(t3.b.d)
--2341, supposed to be negative
--312, supposed to be negative
---312.1
---4222.9898977
|
Result will show negative numbers only when numbers after "." are valid.
This will not happen if I used original dll file, but I still want to use encode/decode function.
Plz solve this problem?
Regards.
_________________
gta5 creator st_of_dec |
|