PDA

View Full Version : Players don't move


Fabio11
17/03/2010, 09:38 PM
Hi. Well my bug is this: When a player spawn, the other players see him frozen, but he moves. It's the same with every players, admin or not. Sometimes, the position in the map updates but the guy still frozen for the others. I don't know where it comes from because it never happened to me before. I was scripting my gamemode, uploaded it to my dedicated server and I saw this testing new features with a friend. So, any ideas?

Correlli
17/03/2010, 09:40 PM
Your OnPlayerUpdate callback should return 1, and not 0.

Fabio11
17/03/2010, 09:47 PM
Oh there was the problem. Thank you very much :) How a little return 1; can change a things in the gamemode ^^

Correlli
17/03/2010, 09:49 PM
Oh there was the problem. Thank you very much :) How a little return 1; can change a things in the gamemode ^^

You're welcome.

Yep:
Returns 0 - Update from this player will not be replicated to other clients.
Returns 1 - Indicates that this update can be processed normally and sent to other players.

Amine_Mejrhirrou
28/04/2012, 12:33 PM
I have It in retur 1 and still have the problem pleas help