No coordinates are saved
#6

try:

pawn Код:
public OnPlayerExitVehicle(playerid,vehicleid)
{
    new sql[2048];
    new Float:x,Float:y,Float:z, Float:angulo;
    GetVehiclePos(vehicleid, x, y, z);
    GetVehicleZAngle(vehicleid, angulo);
    CarInfo[vehicleid][cLocationx] = x;
    CarInfo[vehicleid][cLocationy] = y;
    CarInfo[vehicleid][cLocationz] = z;
    CarInfo[vehicleid][cAngle] = angulo;                   

 
    format(sql, sizeof(sql), "UPDATE cars SET X=%f,Y=%f,Z=%f,A=%f WHERE `id`=%d", x, y, z, angulo, CarInfo[vehicleid][cSQLID]);
    mysql_query(sql);
}
Reply


Messages In This Thread
No coordinates are saved - by Narxon - 16.05.2011, 00:30
Re: No coordinates are saved - by DRIFT_HUNTER - 16.05.2011, 00:46
Respuesta: No coordinates are saved - by Narxon - 16.05.2011, 00:52
Respuesta: No coordinates are saved - by Narxon - 16.05.2011, 14:24
Re: No coordinates are saved - by xDeadlyBoy - 16.05.2011, 14:30
Re: No coordinates are saved - by NRJ53 - 16.05.2011, 15:44

Forum Jump:


Users browsing this thread: 1 Guest(s)