SA-MP Forums Archive
Fly lag?wtf - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Fly lag?wtf (/showthread.php?tid=299756)



Fly lag?wtf - Admigo - 27.11.2011

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


Re: Fly lag?wtf - Ash. - 27.11.2011

Check what you're returning in OnPlayerUpdate. Returning 0 in OnPlayerUpdate causes players to desync.


Re: Fly lag?wtf - Admigo - 27.11.2011

So return needs to be 0 from onplayerupdate?


Re: Lag:Pictures - Admigo - 27.11.2011

I Deleted some parts in script such as onplayerpickuppickup,onplayertext and onplayerkeystatechange but same problem.


Re: Lag:Pictures - Admigo - 27.11.2011

Player:lol
GetAttachment.jpg
Player:Admigo
sa-mp-054.jpg
lol dont see me in front of her. Admigo is not in range of here(look radar)
Admigo cant see that lol is moving.
How can i fix this?


Re: Fly lag?wtf - Ash. - 27.11.2011

OnPlayerUpdate should always return 1. (Unless of course, you want to desync the player).

Could you show the OnPlayerUpdate callback?


Re: Fly lag?wtf - Admigo - 27.11.2011

OMG Thanks you so much! Deleted a return in onplayerupdate in a admin script! Rep+:P


Re: Fly lag?wtf - Ash. - 27.11.2011

Quote:
Originally Posted by admigo
Посмотреть сообщение
OMG Thanks you so much! Deleted a return in onplayerupdate in a admin script! Rep+:P
Haha no problem

I've done it before, and spent about two days looking aswell -.-

Happy Scripting!