AttachObjectToVehicle help? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: AttachObjectToVehicle help? (
/showthread.php?tid=195099)
AttachObjectToVehicle help? -
NewYorkRP - 01.12.2010
I'm trying to use this, but where am i able to define it? I looked at the wiki and the thread, there is no information about it.. i'm getting these errors:
pawn Код:
error 017: undefined symbol "AttachObjectToVehicle"
And i'm using:
pawn Код:
AttachObjectToVehicle(18646, vehicleid, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
My script works with all other features, licence plates, dialog colours .. etc??)
Re: AttachObjectToVehicle help? -
NewYorkRP - 01.12.2010
i still need help .. anyone??
Re : AttachObjectToVehicle help? -
Peppe95 - 01.12.2010
Do you compile with new includes?
Anyway the first parameter of the function is the Object ID that returns the CreateObject, not the Model Id (18646).
Re: Re : AttachObjectToVehicle help? -
NewYorkRP - 01.12.2010
Quote:
Originally Posted by me
My script works with all other features, licence plates, dialog colours .. etc??)
|
Yes .. i suppose i did?
Re: AttachObjectToVehicle help? -
Rac3r - 02.12.2010
Read what peppe said.
You're using the objects model ID, when you should be using the objects ID.
Код:
new a = CreateObject(18646, 0, 0, 0, 0, 0, 0);
AttachObjectToVehicle(a, vehicleid, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);