SetPlayerAttachedObject (help)
#1

hi all ! this is tha first time that i'm gonna use SetPlayerAttachedObject fuction
this is my code ! & my screan shot
why the flame is not on the player ! it's about 2 m of him
Quote:

if(team[playerid] == 2)
{
SetPlayerAttachedObject(playerid,1 ,18694, 17);
}


Reply
#2

Do you have
pawn Код:
#define SetPlayerHoldingObject(%1,%2,%3,%4,%5,%6,%7,%8,%9) SetPlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJECTS-1,%2,%3,%4,%5,%6,%7,%8,%9)
#define StopPlayerHoldingObject(%1) RemovePlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJECTS-1)
#define IsPlayerHoldingObject(%1) IsPlayerAttachedObjectSlotUsed(%1,MAX_PLAYER_ATTACHED_OBJECTS-1)
At the top?

Change your code to this
pawn Код:
if(team[playerid] == 2)
{
    SetPlayerAttachedObject(playerid,1 ,18694, 17, 2);
}
The fire will stick to his head.
Reply
#3

not work'n
it's tha same thing
Reply
#4

resolved
i use Attached Object Editor FS to correct than fail
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)