AttachObjectToVehicle help?
#1

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??)
Reply
#2

i still need help .. anyone??
Reply
#3

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).
Reply
#4

Quote:
Originally Posted by me
My script works with all other features, licence plates, dialog colours .. etc??)
Yes .. i suppose i did?
Reply
#5

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);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)