[HELP] OnPlayerEditDynamicObject not being called
#1

Running 0.3.7
OnPlayerEditObject is not a callback in my gamemode.
Running latest streamer

PHP код:
public OnPlayerEditDynamicObject(playeridobjectidresponseFloat:xFloat:yFloat:zFloat:rxFloat:ryFloat:rz)
{
    if(
response == EDIT_RESPONSE_FINAL)
    {
        print(
"is this even being called?");
        if(
GetPVarInt(playerid"EditingAGate") == 1)
        {
            
Gates[objectid][GateX] = x;
            
Gates[objectid][GateY] = y;
            
Gates[objectid][GateZ] = z;
            
Gates[objectid][GateRX] = rx;
            
Gates[objectid][GateRY] = ry;
            
Gates[objectid][GateRZ] = rz;
            
DestroyDynamicObject(Gates[objectid][GateID]);
            
Gates[objectid][GateID] = CreateDynamicObject(Gates[objectid][GateModel], Gates[objectid][GateX], Gates[objectid][GateY], Gates[objectid][GateZ], Gates[objectid][GateVW], Gates[objectid][GateInt], 0, -1, -1, -1150.0);
            
SetPVarInt(playerid"EditingAGate"0);
            
SaveGate(objectid);
            print(
"yes?");
        }
        if(
GetPVarInt(playerid"EditingAGate") == 2)
        {
            
Gates[objectid][GateXM] = x;
            
Gates[objectid][GateYM] = y;
            
Gates[objectid][GateZM] = z;
            
Gates[objectid][GateRXM] = rx;
            
Gates[objectid][GateRYM] = ry;
            
Gates[objectid][GateRZM] = rz;
            
DestroyDynamicObject(Gates[objectid][GateID]);
            
Gates[objectid][GateID] = CreateDynamicObject(Gates[objectid][GateModel], Gates[objectid][GateX], Gates[objectid][GateY], Gates[objectid][GateZ], Gates[objectid][GateVW], Gates[objectid][GateInt], 0, -1, -1, -1150.0);
            
SetPVarInt(playerid"EditingAGate"0);
            
SaveGate(objectid);
            print(
"ok wtf");
        }
    }
    return 
1;

If you're wondering:

PHP код:
                else if(strcmp(Usage"SpawnPosition"true) == 0)
                {
                    
DestroyDynamicObject(Gates[id][GateID]);
                    
Gates[id][GateID] = CreateDynamicObject(Gates[id][GateModel], Gates[id][GateX], Gates[id][GateY], Gates[id][GateZ], Gates[id][GateVW], Gates[id][GateInt], 0, -1, -1, -1150.0);
                    
                    
EditDynamicObject(playeridGates[id][GateID]);
                    
SetPVarInt(playerid"EditingAGate"1);
                       return 
1;
                }
                else if(
strcmp(Usage"MovePosition"true) == 0)
                {
                    
DestroyDynamicObject(Gates[id][GateID]);
                    
Gates[id][GateID] = CreateDynamicObject(Gates[id][GateModel], Gates[id][GateX], Gates[id][GateY], Gates[id][GateZ], Gates[id][GateVW], Gates[id][GateInt], 0, -1, -1, -1150.0);
                    
EditDynamicObject(playeridGates[id][GateID]);
                    
SetPVarInt(playerid"EditingAGate"2);
                       return 
1;
                } 
is the code where I use EditDynamicObject
Reply


Messages In This Thread
OnPlayerEditDynamicObject is not calling when another filterscript is loaded with #include <streamer> (REP+) - by BornHuman - 15.01.2016, 16:47
Re: [HELP] OnPlayerEditDynamicObject not being called - by PrO.GameR - 15.01.2016, 17:34
Re: [HELP] OnPlayerEditDynamicObject not being called - by PrO.GameR - 15.01.2016, 17:51
Re: [HELP] OnPlayerEditDynamicObject not being called - by BornHuman - 15.01.2016, 18:52
Re: [HELP] OnPlayerEditDynamicObject not being called - by BornHuman - 15.01.2016, 21:20
Re: [HELP] OnPlayerEditDynamicObject not being called - by PrO.GameR - 16.01.2016, 08:40
Re: [HELP] OnPlayerEditDynamicObject not being called - by BornHuman - 16.01.2016, 18:00
Re: [HELP] OnPlayerEditDynamicObject not being called - by BornHuman - 16.01.2016, 18:31

Forum Jump:


Users browsing this thread: 2 Guest(s)