gms_protect bug?

Posted by WolfCoderz
Somehow one of my player reporting about his protected stat goes to the minus even tho he was a new player. When I'm test it here is what happened:

The Variable of global.G should be 0
global.G = 0;
global.G = round(gms_protect_get(2));

Somehow after I'm executed this code, the global.G value changed to -212548.

I hope this problem will be fixed.

Replies (3)

Last message on 14 Jul 2020

Size43 (Administrator) on 10 Jul 2020, 15:45:33

I haven't been able to reproduce this issue. Are you able to reproduce this in an empty project with just the bit of code that you posted?
Size43 (Administrator) on 10 Jul 2020, 16:15:19
You may disregard this message; I've been able to identify the issue. It will be fixed in the next update.
WolfCoderz (Topicstarter) on 14 Jul 2020, 12:47:03
Okay, thanks.