attachobjects to play'a dont work -.-
#1

dosnt work
look
code is:
Код:
if (strcmp("/light", cmdtext, true, 10) == 0)
{
       AttachObjectToPlayer(354, playerid, 1.5, 0.5, 0, 0, 1.5, 2 );
       return 1;
}
i want it to attach to him like in front him
why dosnt itzz ?
Reply
#2

what happens when you type the command?

nothing happens? unknown command?
Reply
#3

like it dosnt appear unknown command it reads the cmd but nothin appears in the front
Reply
#4

You cant attach an object using its model id, you need to create it first (https://sampwiki.blast.hk/wiki/CreateObject) and then use the object id in AttachObjectToPlayer.
Reply
#5

For your information: The first param is the object id, not the model.
Edit: ^ What he said.
Reply
#6

so like what do you guys mean? create the object some where then attachobject to him?
Reply
#7

Exactly.

[This forum requires that you wait 120 seconds between posts. Please try again in 50 seconds.]
Waste of my time.
Reply
#8

O.o thats weired then attachobjectstoplayer (stringicreated, playerid, x,z,y);?
Reply
#9

Quote:
Originally Posted by Vince
Посмотреть сообщение
Exactly.

[This forum requires that you wait 120 seconds between posts. Please try again in 50 seconds.]
Waste of my time.
sorry for double post but can you tell meh your server ip i like cnr xD
Reply
#10

such as

on gm init or w/e

or maybe in ure cmd

test = createobject(ffhfihfisdhfsfjsfjadoa)

then attachobject to player (test fhifhsifjsidfjfsf)

This forum requires that you wait 120 seconds between posts. Please try again in 58 seconds.

OMFGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)