SetPlayerAttachedObject
#1

Hey guys, got some small problem.

Let's say, when someone choose some class when login that player will get some objects [SetPlayerAttachedObject], but the problem is some of those objects won't show up.

If there are 7 objects, just 3-4 will show. Any idea how to fix that?
Reply
#2

Maybe, there is a limit, let me check...
Reply
#3

Quote:
Originally Posted by cray1100
Посмотреть сообщение
Maybe, there is a limit, let me check...
I've checked something in SA-MP Wiki and found this

https://sampwiki.blast.hk/wiki/Limits

Attached player objects - 10 [maximum - 0.3x]

Still I can't show up more than 4-5 objects
Reply
#4

Hmm... I dont see why, yet someone else might, anyone got any ideas? All your objects, are they attached to the same body part...?
Reply
#5

Quote:
Originally Posted by cray1100
Посмотреть сообщение
Hmm... I dont see why, yet someone else might, anyone got any ideas? All your objects, are they attached to the same body part...?
Nope, They are attached to different different parts.
Reply
#6

What about the index id's? Do you use different indexes for each attached object?
Reply
#7

Quote:
Originally Posted by BullseyeHawk
Посмотреть сообщение
What about the index id's? Do you use different indexes for each attached object?
Yeah, I'm using different indexes
Reply
#8

Post your code that attaches the object.
Reply
#9

Quote:
Originally Posted by Psymetrix
Посмотреть сообщение
Post your code that attaches the object.
pawn Код:
SetPlayerAttachedObject(playerid, 0, 19314, 2, 0.1089, 0.0000, 0.0000, -5.4999, -8.3000, -2.8999, 1.0000, 1.0000, 1.0000, 0, 0);
SetPlayerAttachedObject(playerid, 1, 19515, 1, 0.0740, 0.0509, 0.0000, 0.0000, 0.0000, 0.0000, 1.0000, 1.0000, 1.0000, 0, 0);
SetPlayerAttachedObject(playerid, 2, 19514, 2, 0.1000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 1.0000, 1.0000, 1.0000, 0, 0);
SetPlayerAttachedObject(playerid, 3, 2041, 6, 0.1790, 0.0000, 0.0819, 4.2999, -0.8999, 82.6000, 1.0000, 1.0000, 1.0000, 0, 0);
SetPlayerAttachedObject(playerid, 4, 2041, 5, 0.2440, 0.0179, -0.0419, 134.5999, 0.0000, 84.9000, 1.0000, 1.0000, 1.0000, 0, 0);
SetPlayerAttachedObject(playerid, 5, 2590, 1, -0.5350, -0.1229, -0.1779, 0.0000, -107.1999, 3.4999, 1.0000, 1.0000, 1.0000, 0, 0);
SetPlayerAttachedObject(playerid, 6, 2589, 1, -4.7890, -0.0979, 0.3429, 0.0000, -86.7000, 0.0000, 1.0000, 1.0000, 1.0000, 0, 0);}
^^ Some of them won't show up.
Reply
#10

B-BRING
U-UP
M-MY
P-POST
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)