Stoping game :S
#1

When my server on, and on server are I and my friend I see my frien and his skin is not moving, and i teleport to him and he is far from skin, and he move, but skin dosent, pls help
Reply
#2

You mean desynced?
Take a look at your OnPlayerUpdate.
Reply
#3

wow
weird
can be lag too maybe
u have high ping?
Reply
#4

Quote:
Originally Posted by |_ⒾⓇⓄN_ⒹⓄG_|
Посмотреть сообщение
wow
weird
can be lag too maybe
u have high ping?
Nope not due to ping. It sure is a sync problem. Same happened on HuSs3n's server which he fixed real soon. I will leave him a message to see in.
Reply
#5

replace
Код:
public OnPlayerUpdate(playerid)
{
}
with

Код:
public OnPlayerUpdate(playerid)
{
 return 1;
}
Reply
#6

my OnPlayerUpdate

pawn Код:
public OnPlayerUpdate(playerid)
{
    new vehicleid,Float:speed_x,Float:speed_y,Float:speed_z,Float:final_speed,speed_string[256],final_speed_int;
    vehicleid = GetPlayerVehicleID(playerid);
    if(vehicleid != 0)
    {
        GetVehicleVelocity(vehicleid,speed_x,speed_y,speed_z);
        final_speed = floatsqroot(((speed_x*speed_x)+(speed_y*speed_y))+(speed_z*speed_z))*136.666667;
        final_speed_int = floatround(final_speed,floatround_round);
        format(speed_string,256,"Speed: %i",final_speed_int);
        TextDrawSetString(SPEEDOS[playerid], speed_string);
    }
    else
    {
        TextDrawSetString(SPEEDOS[playerid], " ");
    }
    if(GetPVarInt(playerid, "EventKizla") == 1 && !IsPlayerInAnyVehicle(playerid))
    {
        GameTextForPlayer(playerid, "~r~STUNT FAJL", 3000, 4);
        SetPVarInt(playerid,"Stunt1",0);
        SetPVarInt(playerid,"Stunt2",0);
        SetPVarInt(playerid,"Stunt3",0);
        SetPVarInt(playerid,"Stunt4",0);
        SetPVarInt(playerid,"Stunt5",0);
        SetPVarInt(playerid,"Stunt6",0);
        SetPVarInt(playerid, "EventKizla", 0);
        DisablePlayerCheckpoint(playerid);
    }
}
Reply
#7

pawn Код:
public OnPlayerUpdate(playerid)
{
    new vehicleid,Float:speed_x,Float:speed_y,Float:speed_z,Float:final_speed,speed_string[256],final_speed_int;
    vehicleid = GetPlayerVehicleID(playerid);
    if(vehicleid != 0)
    {
        GetVehicleVelocity(vehicleid,speed_x,speed_y,speed_z);
        final_speed = floatsqroot(((speed_x*speed_x)+(speed_y*speed_y))+(speed_z*speed_z))*136.666667;
        final_speed_int = floatround(final_speed,floatround_round);
        format(speed_string,256,"Speed: %i",final_speed_int);
        TextDrawSetString(SPEEDOS[playerid], speed_string);
    }
    else
    {
        TextDrawSetString(SPEEDOS[playerid], " ");
    }
    if(GetPVarInt(playerid, "EventKizla") == 1 && !IsPlayerInAnyVehicle(playerid))
    {
        GameTextForPlayer(playerid, "~r~STUNT FAJL", 3000, 4);
        SetPVarInt(playerid,"Stunt1",0);
        SetPVarInt(playerid,"Stunt2",0);
        SetPVarInt(playerid,"Stunt3",0);
        SetPVarInt(playerid,"Stunt4",0);
        SetPVarInt(playerid,"Stunt5",0);
        SetPVarInt(playerid,"Stunt6",0);
        SetPVarInt(playerid, "EventKizla", 0);
        DisablePlayerCheckpoint(playerid);
    }
    return 1;
}
Try this
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)