SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 27/03/2019, 09:12 PM   #1
Dolke
Little Clucker
 
Join Date: Jul 2015
Posts: 12
Reputation: 0
Default Object is removed after it is set

Hello I have big problem with SetPlayerAttachedObject.

After I set it, it is removed almost instantly,about one second after it is set up.

Here is the code for debug.

Code:
YCMD:edit(playerid, params[], help) 
{
	SetPlayerAttachedObject(playerid, 0, 1550, 1, -0.008714, -0.188819, -0.026564, 159.138153, 86.558647, 0.000000, 1.005565, 0.984468, 1.014210);
	//EditAttachedObject(playerid, 0);
	return 1;
}
Dolke is offline   Reply With Quote
Old 27/03/2019, 09:51 PM   #2
Heress
Huge Clucker
 
Heress's Avatar
 
Join Date: Mar 2018
Location: Lithuania
Posts: 262
Reputation: 7
Default Re: Object is removed after it is set

Quote:
Originally Posted by Dolke View Post
Hello I have big problem with SetPlayerAttachedObject.

After I set it, it is removed almost instantly,about one second after it is set up.

Here is the code for debug.

Code:
YCMD:edit(playerid, params[], help) 
{
	SetPlayerAttachedObject(playerid, 0, 1550, 1, -0.008714, -0.188819, -0.026564, 159.138153, 86.558647, 0.000000, 1.005565, 0.984468, 1.014210);
	//EditAttachedObject(playerid, 0);
	return 1;
}
Search in your gamemode "RemovePlayerAttachedObject", maybe one of them is in timer?
__________________
==============
Sorry for my bad English









Respect: Kalcor, ******. Thank you for this great game!
Heress is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[HELP]Object Removed + Rep jamesmith12 Scripting Help 2 03/08/2015 01:29 PM
Why was this object removed? Onfroi General 4 02/08/2015 05:01 PM
Random object in map (needs to be removed) Sellize Scripting Help 3 02/08/2015 12:37 PM
1 object is removed. Glossy42O Scripting Help 8 28/11/2014 03:11 PM
I can't find this object... Was it removed? Abagail General 5 10/04/2014 06:32 PM


All times are GMT. The time now is 09:23 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.