Object not appearing
#1

Okay so the problem is simple, for some reason the object im trying to attach to the player wont appear at all...

PHP код:
new mytestobj CreateObject(19515,0,0,0,0,0,0,200);
    
SetPlayerAttachedObject(playerid,0,mytestobj,1,0,0,0,0,0,0,0,0,0,0,0);
    
EditAttachedObject(playerid,0); 
Reply
#2

Maybe try using floats instead of integers for the coordinates?
Reply
#3

Same shit, doesnt help
Reply
#4

CreateObject and SetPlayerAttachedObject is separated, you are likely going to use it like this:
Код:
SetPlayerAttachedObject(playerid,0,19515,1);
EditAttachedObject(playerid,0);
People often get confused in this case, CreateObject are the objects created on the map for the server, while SetPlayerAttachedObject just simply sets up a "holding" object on player skin (this is like clothes).
To create:CreateObjectNONE
To attach:AttachObjectToPlayerSetPlayerAttachedObject
To Edit:EditObjectEditAttachedObject
Reply
#5

Thanks Robo! I get it now! +rep!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)