OnPlayeEditDynamicObject doesn't get called
#1

Hey there. So I have this test script where I tried if EditDynamicObject works, and OnPlayeEditDynamicObject doesn't get called in my filterscript.
pawn Код:
new obj;

//////////
public OnFilterScriptInit()
{
    obj = CreateDynamicObject(980, 1935.296142, 1384.733886, 9.257806, 0.0, 0.0, 89.937545);
    return 1;
}
//////////

public OnPlayerSpawn(playerid)
{
    EditDynamicObject(playerid, obj);
    return 1;
}

public OnPlayerEditDynamicObject(playerid, objectid, response, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
{
    SendClientMessage(playerid, -1, "OnPlayerEditDynamicObject gets called");
}
Does anyone know how to fix this? Thanks!
Reply
#2

Yeah and if you try to use the regular version, it gets called 2x. It's a bug with Streamer plugin, I to this day still haven't found out why. Could be some other GDK plugins interfering or just a bug.
Reply
#3

Well Incognito says on github that he doesn't have this issue so I have no idea what is going on. Thanks for your answer.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)