[HELP] OnPlayerEditDynamicObject not being called
#8

Here is how I fixed it for ANYONE having this god forsaken issue:

Open the filterscript .pwn in which the callback is calling in (make sure you figure out every filterscript it's calling in)

Then, add the callback into your filterscript like so:

PHP код:
public OnPlayerEditDynamicObject(playeridobjectidresponseFloat:xFloat:yFloat:zFloat:rxFloat:ryFloat:rz// calling fix, don't remove.
{
    
// make sure it doesn't return anything

Then add

PHP код:
CallRemoteFunction("OnPlayerEditGate""iddffffff"playeridobjectidresponseFloat:xFloat:yFloat:zFloat:rxFloat:ryFloat:rz); 
Make sure you add OnPlayerEditGate to your script after you compile like so:

PHP код:
forward OnPlayerEditGate(playeridobjectidresponseFloat:xFloat:yFloat:zFloat:rxFloat:ryFloat:rz); 
Then, add OnPlayerEditGate above OnPlayerEditDynamicObject in the main script:

PHP код:
public OnPlayerEditGate(playeridobjectidresponseFloat:xFloat:yFloat:zFloat:rxFloat:ryFloat:rz)
{
    
// also should not return anything

Then, we're adding the same line except using a different function

PHP код:
CallLocalFunction("OnPlayerEditDynamicObject""iddffffff"playeridobjectidresponseFloat:xFloat:yFloat:zFloat:rxFloat:ryFloat:rz); 
And then, it should work! (Make sure you restart your server - even if you unload/load your filterscript then GMX the gamemode it will still not work)
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)