SetPlayerAttachedObject problem
#1

when i attach second object to a players the first object gets removed...
what is the problem? i shouldn't use for a second attached object SetPlayerAttachedObject function ?
Reply
#2

Give the code part , it may help us to help you (lol that sounds weird)
Reply
#3

huh 0_o, how the hell the code will help you?
anyway here :
SetPlayerAttachedObject(karid, 0, 1350, 1, 0.1, -0.3, 0, 0, 30, 0, 1, 1, 1);
Reply
#4

Nevermind, I didn't read your post from the first,
I think is because you have to use a different slot to attach the object to.
You can only attach from 0 to 9 slots.
Reply
#5

Why do we need to see your code? Well.. that's a stupid question.

Obviously there's something wrong with your code, so we need to see it to fix it...

However this problem is pretty obvious, you're using the same 'index' to attach the objects. Use a different one.
https://sampwiki.blast.hk/wiki/SetPlayerAttachedObject

Example:
pawn Код:
SetPlayerAttachedObject(16945, 0, ... //Attaches to index 0
SetPlayerAttachedObject(16946, 1, ... //Attaches to index 1
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)