Posts: 1,219
Threads: 51
Joined: Jul 2012
1:What means COrrectly 2: 1582 is a Model ID of a Object not the object id!
Example:
new Object;
Object = CreateObject(1234,.........);
1234: is the model id
Object is the object id
Posts: 518
Threads: 211
Joined: Apr 2012
Reputation:
0
How would I get that to attach a pizza box to the playerid?
Posts: 1,219
Threads: 51
Joined: Jul 2012
AttachObjectToPlayer(Nameofthepizzaobject,playerid ,X,Y,Z,XROT,YROT,ZROT);
Posts: 518
Threads: 211
Joined: Apr 2012
Reputation:
0
"Nameofthepizzabox" Would I put the object-id? Because there isnt a name rite?
It's just the 1582 ocording to sa-mp's wiki page?
Posts: 1,219
Threads: 51
Joined: Jul 2012
create the object so:
new pizzaobj = CreateObject(1582,0,0,0,0,0,0,300);
and then
AttachObjectToPlayer(pizzaobj,playerid,x,y,z,xrot, yrot,zrot);
Posts: 518
Threads: 211
Joined: Apr 2012
Reputation:
0
error 017: undefined symbol "X"
On the attachobject line
Posts: 1,219
Threads: 51
Joined: Jul 2012
OMG you must put your own numbers in it not X,Y and Z!!
Posts: 518
Threads: 211
Joined: Apr 2012
Reputation:
0
Fixed.
Just now, how do you get it so the olayerid, is holdimng the pizza box, not attached to his feet?