16.05.2011, 15:44
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);
}