TrueOverL wrote:
wait this is legit runescape max ammount lmao wtf?
2,147,483,647 [zarp adds +1]
??
That's the max amount you can have in a GP stack:
Jagex uses a signed 32-bit integer value which has a max value of +2,147,483,647. This can be represented as 0x7FFFFFFF in hexidecimal or 231 -1 . Java does not used unsigned values, otherwise the max stack size would be 4,294,967,295 for any item.
The next data type after a 32-bit integer is the 64-bit integer type called a long. The signed max value is 9,223,372,036,854,775,807, which is probably higher than the combined wealth of every player in game and useless to change to.
It's likely this is a similar, if not the same issue for the DarkRP game mode. Just hazarding a guess here, nor am I an expert in LUA, but the data type for any instance of a player object is a 32-bit integer or at least the value on the dropped money entity which is then stringified to display how much is there (to me in .NET terms an int, not long), read more at:
forum.facepunch.com/f/gmoddev/lngx/WARNI...ring-is-dangerous/1/
So what happens here, because you've gone over the positive limit for a 32-bit int, it starts from the lowest possible number, which is -2,147,483,647, i.e.
en.wikipedia.org/wiki/Integer_overflow
But the real question is why the fuck would you drop 2.9 bil?