03.03.2011, 21:30
You have vehicleid defined in that context, so why do you need a function to get the vehicleid? Just put vehicleid in as the last argument in the format? For example:
pawn Код:
format(queue, sizeof(queue), "UPDATE `Vehicles` SET VehicleOwner= '%s', Model= '%d' VehPosX= '%f', VehPosY= '%f', VehPosZ= '%f', VehRot= '%f', WHERE ID= '%d'", PlayerName(playerid), TheModelID, vehx, vehy, vehz, angle, vehicleid);