How can i do this without spam?
#6

Ok ty, Well instead of making a new topic il post it here,
Im saving some vehicles to MySQL and well, "ID, Owner, Model, X, Y, Z" works fine,
No query errors or anything, But when it comes to angle it dosent work? Why :S

pawn Код:
new Float:pPOS[4], str[128];
GetPlayerPos(playerid, pPOS[0], pPOS[1], pPOS[2]);
GetPlayerFacingAngle(playerid, pPOS[3]);

#undef DEFAULT_VEHICLE_OWNER
#define DEFAULT_VEHICLE_OWNER VehicleOwner
               
format(Query, sizeof(Query), "INSERT INTO vehicles (id, owner, model, x, y, z) VALUES (NULL, '%s', %d, %f, %f, %f);",DEFAULT_VEHICLE_OWNER, PVTModelID, pPOS[0], pPOS[1], pPOS[2]);
mysql_query(Query);
This code works perfect.
This one dosent

pawn Код:
new Float:pPOS[4], str[128];
GetPlayerPos(playerid, pPOS[0], pPOS[1], pPOS[2]);
GetPlayerFacingAngle(playerid, pPOS[3]);

#undef DEFAULT_VEHICLE_OWNER
#define DEFAULT_VEHICLE_OWNER VehicleOwner
               
format(Query, sizeof(Query), "INSERT INTO vehicles (id, owner, model, x, y, z, a) VALUES (NULL, '%s', %d, %f, %f, %f, %f);",DEFAULT_VEHICLE_OWNER, PVTModelID, pPOS[0], pPOS[1], pPOS[2], pPOS[3]);
mysql_query(Query);
Anyone know? Angle is vital and i dont see why X, Y, Z works but A dosent :S
Reply


Messages In This Thread
How can i do this without spam? - by iTorran - 02.12.2010, 16:56
Re: How can i do this without spam? - by SkizzoTrick - 02.12.2010, 17:00
Re: How can i do this without spam? - by iTorran - 02.12.2010, 17:05
Re: How can i do this without spam? - by iggy1 - 02.12.2010, 17:09
Re: How can i do this without spam? - by SkizzoTrick - 02.12.2010, 17:13
Angle isent working - by iTorran - 02.12.2010, 17:52

Forum Jump:


Users browsing this thread: 1 Guest(s)