How to bypass -2,147,483,648? -
danielpalade - 12.10.2016
As you know, you can't have more than 2,147,483,648$ because it will go negative.
Is there a way to bypass this?
Re: How to bypass -2,147,483,648? -
NeXoR - 12.10.2016
Hmm, you can save it as string and convert it to multiple ints somehow
Re: How to bypass -2,147,483,648? -
Vince - 12.10.2016
No. A 64-bit variable can store a value up to 9,223,372,036,854,775,807 (however much that is) but Pawn does not support this. It also requires a 64-bit capable system and a 64-bit application.
If the variable in question stores money then I think it's time to "deflate" your server's economy.
Re: How to bypass -2,147,483,648? -
danielpalade - 12.10.2016
Quote:
Originally Posted by Vince
No. A 64-bit variable can store a value up to 9,223,372,036,854,775,807 (however much that is) but Pawn does not support this. It also requires a 64-bit capable system and a 64-bit application.
If the variable in question stores money then I think it's time to "deflate" your server's economy.
|
I've seen a lot of servers having users with over 3,000,000,000 and not having a negative balance. So there must be a way.
Re: How to bypass -2,147,483,648? -
Luis- - 12.10.2016
Quote:
Originally Posted by danielpalade
I've seen a lot of servers having users with over 3,000,000,000 and not having a negative balance. So there must be a way.
|
Sure they're not using a textdraw?
Re: How to bypass -2,147,483,648? -
danielpalade - 12.10.2016
Quote:
Originally Posted by Luis-
Sure they're not using a textdraw?
|
100% positive. When you do /stats, it even displays the money you have. And yes, it's over 3,000,000,000.
Currently trying to figure out how I can save the money into a string instead of an integer. Hope that it works out.
Re: How to bypass -2,147,483,648? -
Kaliber - 12.10.2016
Here you go:
https://sampforum.blast.hk/showthread.php?tid=372994
Re: How to bypass -2,147,483,648? -
AbyssMorgan - 12.10.2016
https://sampforum.blast.hk/showthread.php?tid=598933
Re: How to bypass -2,147,483,648? -
Luicy. - 12.10.2016
Server sided money?
Re: How to bypass -2,147,483,648? -
danielpalade - 12.10.2016
Quote:
Originally Posted by Luicy.
Server sided money?
|
And how would I go about that?