Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

OnPlayerEditObject not called #17

Closed
KubiPL opened this issue Jul 21, 2014 · 8 comments
Closed

OnPlayerEditObject not called #17

KubiPL opened this issue Jul 21, 2014 · 8 comments

Comments

@KubiPL
Copy link

KubiPL commented Jul 21, 2014

When I'm using streamer, OnPlayerEditObject isn't called on my Linux server, works on Windows.

@samp-incognito
Copy link
Owner

Works fine for me.

@KubiPL
Copy link
Author

KubiPL commented Jul 22, 2014

So why same code isn't working on diffrent platform?

This for e.g not works (FS):
public OnPlayerEditObject( playerid, playerobject, objectid, response,Float:fX, Float:fY, Float:fZ, Float:fRotX, Float:fRotY, Float:fRotZ )
{
SendClientMessage(playerid, -1, "Normal object edit");
return 1;
}

public OnPlayerEditDynamicObject(playerid, objectid, response, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
{
SendClientMessage(playerid, -1, "Dynamic object edit");
return 1;
}

@samp-incognito
Copy link
Owner

I'm guessing it has less to do with the platform and more to do with something in your script causing a conflict. Try testing that code in a bare script with nothing else running and see what happens.

@KubiPL
Copy link
Author

KubiPL commented Jul 23, 2014

I have removed filterscript which had streamer included, now only gamemode have it and it is working. Please check it, why when we have FS's with streamer code in it, other callbacks which are used in streamer plugin aren't procced to other script.

@samp-incognito
Copy link
Owner

That's just the way OnPlayerEditObject works, if I recall correctly. It's only executed in the calling script. I have no idea why.

@samp-incognito
Copy link
Owner

Can't reproduce.

@alonsohii
Copy link

alonsohii commented Dec 12, 2018

The same thing happened to me, I can not call OnPlayerEditObject

@karimcambridge
Copy link

I'm sorry but I think this should be closed. The callback is fine AFAIK.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants