SA-MP Forums Archive
OnPlayerEditObject not calling - 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: OnPlayerEditObject not calling (/showthread.php?tid=344508)



OnPlayerEditObject not calling - jonrb - 21.05.2012

Hi all,
I'm having a bit of trouble with OnPlayerEditObject, it doesn't seem to call when I hit the save button on the in game object editor.

- I've updated to 0.3e and I'm not getting any compiler errors or warnings

Are there any solutions to this? I've seen scripts which use OnPlayerEditObject so I assume it's working for other people.

Thanks,

JonRB


Re: OnPlayerEditObject not calling - SuperViper - 21.05.2012

If you're editing an attached object, it's OnPlayerEditAttachedObject.


Re: OnPlayerEditObject not calling - jonrb - 21.05.2012

I'm not. I'm using EditObject(playerid,objectid); with a valid object. The editor is displaying correctly, everything works until I click the save button or press escape, then nothing happens.


Re: OnPlayerEditObject not calling - Vince - 21.05.2012

Debug the callback (i.e. add prints).


Re: OnPlayerEditObject not calling - jonrb - 21.05.2012

Quote:
Originally Posted by Vince
Посмотреть сообщение
Debug the callback (i.e. add prints).
That's exactly what I did - That's how I know it's not calling.

UPDATE: It's working on my local computer (Windows), but not on my hosted server (Linux).
UPDATE 2: If it helps, I'm loading this script after the server loads


Re: OnPlayerEditObject not calling - jonrb - 21.05.2012

The problem seems to be that the script will not work if it is loaded after the server. Just tested it.

Is this an SA-MP bug?


Re: OnPlayerEditObject not calling - jonrb - 23.05.2012

Bump: Is this an SA-MP bug or am I doing something wrong?


Re : OnPlayerEditObject not calling - Tom_Adams - 27.07.2012

J'ai le mкme problиme...