Variable
#8

Your query max length will be the string length you've got. = 33

Код:
UPDATE `players` SET `money` = %d
Then, take away "%d" as this will be replaced with a number. = 31

Код:
UPDATE `players` SET `money` =
This number can maximum be 999,999,999 (without the commas, dont write it, imagine it). = 40

Код:
UPDATE `players` SET `money` = 999999999
So in your case I would recommend a string length on 41-45 just to be sure. If this was a bank amount of cash, the max amount a integer can hold is: 2,147,483,647. That makes 1 more.
This is how you calculate the lengths
Reply


Messages In This Thread
Variable - by Micko123 - 08.11.2016, 09:35
Re: Variable - by AjaxM - 08.11.2016, 09:54
Re: Variable - by Micko123 - 08.11.2016, 09:57
Re: Variable - by AjaxM - 08.11.2016, 10:00
Re: Variable - by Micko123 - 08.11.2016, 10:01
Re: Variable - by AjaxM - 08.11.2016, 10:03
Re: Variable - by Micko123 - 08.11.2016, 10:04
Re: Variable - by denNorske - 08.11.2016, 10:04
Re: Variable - by Micko123 - 08.11.2016, 10:06

Forum Jump:


Users browsing this thread: 2 Guest(s)