Position saving
#1

Hello, I'm using this -http://forum.sa-mp.com/index.php?topic=148182.0 MySQL plugin, but i have the problem with the player position saving. It can save everything, but not the player position..
Here's the code:

Код:
<...>
GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
<...>
format(query, 1024,"UPDATE "SQL_TABLE" SET Numeris = '%d', Mobilus = '%d', X_Kordinate = '%s', Y_Kordinate = '%s', Z_Kordinate = '%s' WHERE vardas = '%s'",pInfo[playerid][Mobilus],Pos[0],Pos[1],Pos[2],pInfo[playerid][Nick]);
  mysql_query(query);
  mysql_free_result();
<...>
Help me someone
Reply
#2

I don't want to spam or something, but I really need help fast!
Reply
#3

Since whne are coordinates strings?
Код:
<...>
GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
<...>
format(query, 1024,"UPDATE "SQL_TABLE" SET Numeris = %d, Mobilus = %d, X_Kordinate = %f, Y_Kordinate = %f, Z_Kordinate = %f WHERE vardas = '%s'",pInfo[playerid][Mobilus],Pos[0],Pos[1],Pos[2],pInfo[playerid][Nick]);
  mysql_query(query);
<...>
And next time ask in plugin's topic.
Reply
#4

it's in the top of save stock..
Reply
#5

help!
Reply
#6

someone?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)