Simple Error
#1

pawn Код:
AttachObjectCorrectly(playerid, 1582);
Why does this say invalid object id?

I'm trying to attach a pizza box to player?
Reply
#2

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
Reply
#3

How would I get that to attach a pizza box to the playerid?
Reply
#4

AttachObjectToPlayer(Nameofthepizzaobject,playerid ,X,Y,Z,XROT,YROT,ZROT);
Reply
#5

"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?
Reply
#6

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

error 017: undefined symbol "X"

On the attachobject line
Reply
#8

OMG you must put your own numbers in it not X,Y and Z!!
Reply
#9

Fixed.

Just now, how do you get it so the olayerid, is holdimng the pizza box, not attached to his feet?
Reply
#10

Quote:
Originally Posted by UnknownGamer
Посмотреть сообщение
Fixed.

Just now, how do you get it so the olayerid, is holdimng the pizza box, not attached to his feet?
Even when it would look cool that he is surfing the pizza box, you can edit the x, y, z coordinates to change the location of the box on the player.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)