Players are not moving
#1

I cant see players moving, is it a bug with my server scripts? i tried different gamemodes and it worked, except my server
Reply
#2

Are you returning 0 in OnPlayerUpdate by any chance?
Reply
#3

Maybe its because somewhere in your script there's a :
TogglePlayerControllable(playerid, 0); // which means it freezes them
Reply
#4

Yea I put it return 0; somewhere

pawn Код:
public OnPlayerUpdate(playerid)
{
if(GetPlayerVirtualWorld(playerid)!=1)return 0;
new Float:health;
new veh;
veh = GetPlayerVehicleID(playerid);
GetVehicleHealth(veh, health);
if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
RepairVehicle(GetPlayerVehicleID(playerid));
}
return 1;
}
for the auto repair only on world 1 but i didnt think that it will mess up the other woorlds
Reply
#5

Well, yeah that would explain it.

That is basically throwing away the sync data from any player who is NOT in virtual world 1.

Change that to return 1 if you wish for execution to stop there without causing player sync to stop.
Reply
#6

Thanks kc your the best! I use ConvertFFS everytime I map on MTA and convert to SA-MP
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)