Posts: 1,840
Threads: 399
Joined: Oct 2010
Reputation:
0
Heey all,
I have added something in my script and now players flying(lag).
If i drive to a player he dont see my move.
Anyone knows how to fix this?
No errors in script.
Thanks Admigo
Posts: 2,082
Threads: 118
Joined: Jan 2010
Reputation:
0
Check what you're returning in OnPlayerUpdate. Returning 0 in OnPlayerUpdate causes players to desync.
Posts: 1,840
Threads: 399
Joined: Oct 2010
Reputation:
0
So return needs to be 0 from onplayerupdate?
Posts: 1,840
Threads: 399
Joined: Oct 2010
Reputation:
0
I Deleted some parts in script such as onplayerpickuppickup,onplayertext and onplayerkeystatechange but same problem.
Posts: 2,082
Threads: 118
Joined: Jan 2010
Reputation:
0
OnPlayerUpdate should always return 1. (Unless of course, you want to desync the player).
Could you show the OnPlayerUpdate callback?
Posts: 1,840
Threads: 399
Joined: Oct 2010
Reputation:
0
OMG Thanks you so much! Deleted a return in onplayerupdate in a admin script! Rep+:P