Returning 0 (EDIT lol mistake) - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Returning 0 (EDIT lol mistake) (
/showthread.php?tid=153139)
Returning 0 (EDIT lol mistake) -
jonrb - 07.06.2010
Hi guys,
What happens if you return 0 on OnPlayerConnect? Does the player desync (like OnPlayerUpdate) or is it something more interesting? I searched on the forums but i couldn't find it.
Thanks,
JonRB
Re: Returning 1 -
Backwardsman97 - 07.06.2010
I always return 1 under all my callbacks. There's nothing wrong with doing that. The only time you'd have problems is when you return 0. Sometimes it's necessary though.