SA-MP Forums Archive
PetrolCap question - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: PetrolCap question (/showthread.php?tid=370196)



PetrolCap question - fordawinzz - 19.08.2012

I'm trying to get the position of the petrol cap for a vehicle, but it would print me the native positions, not vehicle's.

pawn Код:
new Float: sPos[3];
GetVehiclePos(id, sPos[0], sPos[1], sPos[2]);
GetVehicleModelInfo(carVariables[id][cModel], VEHICLE_MODEL_INFO_PETROLCAP, sPos[0], sPos[1], sPos[2]);
printf("%f %f %f", sPos[0], sPos[1], sPos[2]);