problems with OnPlayerEditObject - 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)
+--- Thread: problems with OnPlayerEditObject (
/showthread.php?tid=424374)
problems with OnPlayerEditObject[SOLVED] -
horsemeat - 21.03.2013
Problems with...
Code:
public OnPlayerEditObject
ok I have try every thing and then I found the solution load the filter script I created before the gamemode this works but it is a pain in the ass.
So what I am asking is there any way that this code could work after loading the gamemode
I have download some other peoples Filter Scripts and have seen the objects update correctly
if there is no way to get around this bug then I going to make a timer that constantly save and
objects position but I have seen it work before so help me
---------------------------------------------------------------------------------------------------------------
SOLVED
---------------------------------------------------------------------------------------------------------------
I looked around and searched forms and found,
The Reason Why it does not work is because I have a filter script that uses Streamer.
So this Simple thing to do is use streamer in my code
Code:
public OnPlayerEditDynamicObject()
and that worked
if you are going to do this make sure you also make all your objects with streamer to
like
Code:
CreateDynamicObject(objected,xfloat,yfloat,zfloat,xrotfloat,yrotfloat,zrotfloat,0);//to create object
EditDynamicObject(playerid,objectid);//to edit the object
Re: problems with OnPlayerEditObject -
Jstylezzz - 21.03.2013
I think you might be using it wrongly..
Check out the wiki for this.
Re: problems with OnPlayerEditObject -
horsemeat - 21.03.2013
no I already checked
Re: problems with OnPlayerEditObject -
horsemeat - 21.03.2013
have you made a script using public OnPlayerEditObject if so can I see the part of the script you don't have to show the hole thing just add key points