attachobjects to play'a dont work -.- - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: attachobjects to play'a dont work -.- (
/showthread.php?tid=177187)
attachobjects to play'a dont work -.- -
FireCat - 16.09.2010
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 ?
Re: attachobjects to play'a dont work -.- -
thomas.. - 16.09.2010
what happens when you type the command?
nothing happens? unknown command?
Re: attachobjects to play'a dont work -.- -
FireCat - 16.09.2010
like it dosnt appear unknown command it reads the cmd but nothin appears in the front
Re: attachobjects to play'a dont work -.- -
Mauzen - 16.09.2010
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.
Re: attachobjects to play'a dont work -.- -
Vince - 16.09.2010
For your information: The first param is the object id, not the model.
Edit: ^ What he said.
Re: attachobjects to play'a dont work -.- -
FireCat - 16.09.2010
so like what do you guys mean? create the object some where then attachobject to him?
Re: attachobjects to play'a dont work -.- -
Vince - 16.09.2010
Exactly.
[This forum requires that you wait 120 seconds between posts. Please try again in 50 seconds.]
Waste of my time.
Re: attachobjects to play'a dont work -.- -
FireCat - 16.09.2010
O.o thats weired then attachobjectstoplayer (stringicreated, playerid, x,z,y);?
Re: attachobjects to play'a dont work -.- -
FireCat - 16.09.2010
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
Re: attachobjects to play'a dont work -.- -
thomas.. - 16.09.2010
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