Problem: Incognito's streamer -> MoveDynamicObject
#1

Well, I've just came up with another awesomely strange bug, here is what happened:

I have this code:
pawn Код:
gVar = CreateDynamicObject(1495,-1656.94433594,717.27343750,5904.78222656,0.00000000,0.00000000,89.97253418);
Then this which is a part of a command:

pawn Код:
if(PlayerToPoint(5, playerid, -1656.9443359375, 717.2734375, 5904.7822265625))
        {
            SetTimerEx("GateTimer", 5000, false, "iffff",gVar,-1656.9443359375, 717.2734375, 5904.7822265625, 5.0);
            MoveDynamicObject(gVar,-1656.9443359375, 717.2734375, 5894.7822265625, 3);
            SendClientMessage(playerid, WHITE, "Message");
        }
The problem is that the object is not moved. But, it comes strange when the last message:
pawn Код:
SendClientMessage(playerid, WHITE, "Message");
is sent to the player with no problems, tough there isn't detected any motion in the object.
It comes even more strange when after some time a new object appears in the place of the other(The other is still there). The object that appears is some random object that I've added to the gamemode.
Reply
#2

1) Did you use gVar only once? Or multilple times (when creating an object).?
2) Try after doing things that makes it move, just walk a bit. The streamer only works for me when I'm moving :P (only once. If I'm opening a gate, and I do nothing, nothing happens. If I walk once, it starts moving).
Reply
#3

The code has no problem. I guess it's a streamer problem, and no moving affects nothing.
Reply
#4

So, no one faced this problem?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)