16.01.2016, 18:31
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:
Then add
Make sure you add OnPlayerEditGate to your script after you compile like so:
Then, add OnPlayerEditGate above OnPlayerEditDynamicObject in the main script:
Then, we're adding the same line except using a different function
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)
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(playerid, objectid, response, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz) // calling fix, don't remove.
{
// make sure it doesn't return anything
}
PHP код:
CallRemoteFunction("OnPlayerEditGate", "iddffffff", playerid, objectid, response, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz);
PHP код:
forward OnPlayerEditGate(playerid, objectid, response, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz);
PHP код:
public OnPlayerEditGate(playerid, objectid, response, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
{
// also should not return anything
}
PHP код:
CallLocalFunction("OnPlayerEditDynamicObject", "iddffffff", playerid, objectid, response, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz);