Posts: 449
Threads: 125
Joined: Apr 2013
Reputation:
0
Players can only have 2,000,000,000$ max money if they have more than 2,000,000,000$ the money are going to -1294381238128381 and fucks up everything.
In my sql DB i tried to give me money 5000000000 and i am getting `Out of range value collumn` .
How to fix?
I rep ++ thankss,!
Posts: 507
Threads: 29
Joined: Jul 2014
Reputation:
0
A variable integer can contain, 32 bits.
32 bits in binary it's : 1111111111111111111111111111111
Decimal it would : 2^31-1 -> 2 147 483 647
A variable can store "cellmin" ( -2 147 483 648 ) to "cellmax" ( 2 147 483 647 )
Posts: 507
Threads: 29
Joined: Jul 2014
Reputation:
0
To my knowledge, you can't it.
Posts: 449
Threads: 125
Joined: Apr 2013
Reputation:
0
On other servers the players can have more than 2kkk , on my server max is 2kkk
Posts: 507
Threads: 29
Joined: Jul 2014
Reputation:
0
You can display as string... otherwise I don't know
Posts: 449
Threads: 125
Joined: Apr 2013
Reputation:
0
The database is not allowing me to put more than 2,000,000,000$
Posts: 507
Threads: 29
Joined: Jul 2014
Reputation:
0
A database doesn't work as the Pawn compiler
Posts: 766
Threads: 66
Joined: Feb 2014
Reputation:
0
There will be some limit on everything. I don't actually know if you can hold more than 999m in SA:MP. But that's probably not possible.