Vehicle Handling Include - 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: Vehicle Handling Include (
/showthread.php?tid=632533)
Vehicle Handling Include -
feheristi97 - 15.04.2017
Hello folks!
I found this gorgeous include online today back in 2014 by Hesse. I am writing my own vehicle system, and I downloaded as a include, and I put it in my gamemode as a include #include handling. My question is.. even if I don't use any of the natives I get error back.. I didn't edit the include it's the original codes, but it doesn't want to work for me, any ideas would be great!
Topic:
https://sampforum.blast.hk/showthread.php?tid=514071
Include Code:
https://github.com/l0nger/SAMP-Handl...r/handling.inc
Error:
C:\Users\Desktop\samp037_svr_R2-1-1_win32\pawno\include\handling.inc(382) : error 001: expected token: "-identifier-", but found "("
C:\Users\Desktop\samp037_svr_R2-1-1_win32\pawno\include\handling.inc(384) : error 010: invalid function or declaration
C:\Users\Desktop\samp037_svr_R2-1-1_win32\pawno\include\handling.inc(387) : error 001: expected token: "-identifier-", but found "("
C:\Users\Desktop\samp037_svr_R2-1-1_win32\pawno\include\handling.inc(389) : error 010: invalid function or declaration
Re: Vehicle Handling Include -
LEOTorres - 15.04.2017
Change
Code:
#define GetVehicleDriveType(%0) (sampHandling[getVehicleMID(%0)][esh_driveType])
#define GetVehicleEngineType(%0) (sampHandling[getVehicleMID(%0)][esh_engineType])
to
Code:
#define GetVehicleDriveType(%0)\32;(sampHandling[getVehicleMID(%0)][esh_driveType])
#define GetVehicleEngineType(%0)\32;(sampHandling[getVehicleMID(%0)][esh_engineType])
on line 21 and 22; the include should still work as per normal.
Re: Vehicle Handling Include -
feheristi97 - 15.04.2017
Thank you so much LEOTorres, script works great now! Thank You.