It's a CE bug. DB added an address parameter to valueToBytes and bytesToValue a while ago. In TCustomType.ConvertFloatToDataLua, the pcall to valueToBytes says there's one parameter when there's actually two. Ask DB to fix it.
In the meantime, use assembly.
Also, you're treating a float as an integer (probably not intended), but I'm sure you can figure out how to fix that. _________________
I don't know where I'm going, but I'll figure it out when I get there.
It's a CE bug. DB added an address parameter to valueToBytes and bytesToValue a while ago. In TCustomType.ConvertFloatToDataLua, the pcall to valueToBytes says there's one parameter when there's actually two. Ask DB to fix it.
In the meantime, use assembly....
I see. Thank you.
ParkourPenguin wrote:
...
Also, you're treating a float as an integer (probably not intended), but I'm sure you can figure out how to fix that.
It's an integer but I like CE to display it with decimal points (for the seconds), I did try it with the "isFloat" set to false but got the same error.
EDIT:
I guess I DIDN't try it with the "isFloat" set to false because I just tried it again and that works. _________________
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum