MySQL - Float doesnt Loads/Saves
#7

Quote:
Originally Posted by Eyce
Посмотреть сообщение
I use "double" for my table when saving floats, so it's like:
Код:
`PosX` double NOT NULL DEFAULT '0.0'
Edit: You can also remove "\" after
Код:
"WHERE id='%d'",
Where do Iґve gotta add "`PosX` double NOT NULL DEFAULT '0.0'"?
Back in the days I used Dini and now Iґm testing a bit around with MySQL so dont get mad because of this kinda... weird question please



The "\" is set because I use two Lines in this code ^^


PHP код:
    mysql_format(mysqlquerysizeof(query), "UPDATE `accounts` SET `Score`=%d, `VIP`=%d, `Money`=%d, `posX`=%.6f, `posY`=%.6f, `posZ`=%.6f WHERE `ID`=%d",\
    
pInfo[playerid][Score], pInfo[playerid][VIP], pInfo[playerid][Money], pos[0], pos[1], pos[2], pInfo[playerid][AccID]); 
Reply


Messages In This Thread
MySQL - Float doesnt Loads/Saves - by Saize - 21.01.2015, 00:58
Re: MySQL - Float doesnt Loads/Saves - by EnforcerDon - 21.01.2015, 01:07
AW: Re: MySQL - Float doesnt Loads/Saves - by Saize - 21.01.2015, 01:11
Re: MySQL - Float doesnt Loads/Saves - by Misiur - 21.01.2015, 01:26
AW: Re: MySQL - Float doesnt Loads/Saves - by Saize - 21.01.2015, 01:40
Re: MySQL - Float doesnt Loads/Saves - by Eyce - 21.01.2015, 01:40
AW: Re: MySQL - Float doesnt Loads/Saves - by Saize - 21.01.2015, 01:49
Re: MySQL - Float doesnt Loads/Saves - by Eyce - 21.01.2015, 01:54
AW: Re: MySQL - Float doesnt Loads/Saves - by Saize - 21.01.2015, 02:15
Re: MySQL - Float doesnt Loads/Saves - by Eyce - 21.01.2015, 02:30

Forum Jump:


Users browsing this thread: 2 Guest(s)