sync bug?
#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


Messages In This Thread
sync bug? - by Zume - 07.07.2014, 00:34
Respuesta: sync bug? - by Zume - 25.11.2014, 16:30
Re: sync bug? - by Kyance - 25.11.2014, 16:51
Re: sync bug? - by spell - 25.11.2014, 23:19

Forum Jump:


Users browsing this thread: 1 Guest(s)