Traffic Cone flattens. -
Lynn - 31.08.2011
When I attach the Traffic Cone to my player,
It's flat.
I am sure one of the cords is causing it. Un-sure what one.
pawn Код:
SetPlayerAttachedObject(playerid, 0, 1238,6,0.050000, 0.05, -0.4, 0.000000, 0.000000, 0.000000,0.80,1, 0);
Re: Traffic Cone flattens. -
=WoR=G4M3Ov3r - 31.08.2011
Its the index.
PHP код:
SetPlayerAttachedObject(playerid, 4, 1238,6,0.050000, 0.05, -0.4, 0.000000, 0.000000, 0.000000,0.80,1, 0);
This should work.
Re: Traffic Cone flattens. -
Lynn - 31.08.2011
Still does it.
Re: Traffic Cone flattens. -
=WoR=G4M3Ov3r - 31.08.2011
Quote:
Originally Posted by Lynn
Still does it.
|
Mm, try it like this
PHP код:
SetPlayerHoldingObject(playerid, modelid, bone, Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ, Float:fRotX, Float:fRotY, Float:fRotZ)
Re: Traffic Cone flattens. -
Lynn - 31.08.2011
That's not a SAMP Native.
Re: Traffic Cone flattens. -
IceCube! - 31.08.2011
Your right
That function was removed in 0.3c R1
Re: Traffic Cone flattens. -
=WoR=G4M3Ov3r - 31.08.2011
Sorry about that, I'm half drunk, anyway did you
PHP код:
#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)
Then replace it with this
PHP код:
SetPlayerAttachedObject(playerid, 4, 1238, 6);
Sorry again
Re: Traffic Cone flattens. -
Lynn - 01.09.2011
Thanks man. It works now.
Re: Traffic Cone flattens. -
=WoR=G4M3Ov3r - 01.09.2011
Quote:
Originally Posted by Lynn
Thanks man. It works now.
|
No Problem, man, Sorry again.