How to bypass -2,147,483,648‬?
#1

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?
Reply
#2

Hmm, you can save it as string and convert it to multiple ints somehow
Reply
#3

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.
Reply
#4

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.
Reply
#5

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?
Reply
#6

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.
Reply
#7

Here you go: https://sampforum.blast.hk/showthread.php?tid=372994
Reply
#8

https://sampforum.blast.hk/showthread.php?tid=598933
Reply
#9

Server sided money?
Reply
#10

Quote:
Originally Posted by Luicy.
Посмотреть сообщение
Server sided money?
And how would I go about that?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)