SA-MP Forums Archive
sync bug? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: sync bug? (/showthread.php?tid=524482)



sync bug? - Zume - 07.07.2014

sync bug:

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


Respuesta: sync bug? - Zume - 25.11.2014

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


Re: sync bug? - Kyance - 25.11.2014

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?)


Re: sync bug? - spell - 25.11.2014

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);
}