Player positions not saved properly
#1

Hi.

I've ran into a problem where my player position script only saves 4 numbers and no decimal points. I'm using mysql here is my script for saving positions:

PHP код:
stock SavePlayerPos(playerid)
{
    new 
query[500], Float:posXFloat:posYFloat:posZ;
    
GetPlayerPos(playeridposXposYposZ);
    
format(querysizeof(query), "UPDATE `accounts` SET `playerX` = '%f', `playerY` = '%f', `playerZ` = '%f' WHERE `playerName` = '%s'"posXposYposZplayerInfo[playerid][playerName]);
    
mysql_tquery(Databasequery);

Please help
Reply


Messages In This Thread
Player positions not saved properly - by OMonger - 25.07.2018, 13:43
Re: Player positions not saved properly - by RedRex - 25.07.2018, 13:51
Re: Player positions not saved properly - by SyS - 25.07.2018, 13:55
Re: Player positions not saved properly - by OMonger - 25.07.2018, 13:58
Re: Player positions not saved properly - by SyS - 25.07.2018, 14:03
Re: Player positions not saved properly - by OMonger - 25.07.2018, 14:15
Re: Player positions not saved properly - by OMonger - 25.07.2018, 14:37
Re: Player positions not saved properly - by AmigaBlizzard - 25.07.2018, 22:39

Forum Jump:


Users browsing this thread: 2 Guest(s)