sync bug?
#1

sync bug:

[ame]http://www.youtube.com/watch?v=BMeJbEO0jCQ[/ame]
Reply
#2

would be nice to settle it as well as this there is more to become invisibe.
Reply
#3

This has happened to me too;
Happens when a player gets put in a vehicle, while he's already in a vehicle.(/vehicle command for an example)
And then It looks like you're controlling two cars(or possibly more).

EDIT: Gets fixed when the player streams back in(re-streams?)
Reply
#4

This is a know bug. Its caused because OnPlayerStateChange is not called - the player vehicle id is not synced for other players.

You can fix it by re-streaming the player.
pawn Код:
stock fixed_PutPlayerInVehicle(playerid, vehicleid, seat) {

    if (IsPlayerInAnyVehicle(playerid)) {
        SetTimerEx("returnVW", 1500, false, "i", GetPlayerVirtualWorld(playerid));
        SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(playerid)+1); // Unload player
    }
    return PutPlayerInVehicle(playerid, vehicleid, seat);
}

forward returnVW(playerid, vwid);
public returnVW(playerid, vwid) {
    SetPlayerVirtualWorld(playerid, vwid);
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)