what is this bug, help guys pls. - 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: what is this bug, help guys pls. (
/showthread.php?tid=660843)
what is this bug, help guys pls. -
kevi11 - 15.11.2018
Why when i write on the game, write 2 time....
Look the screen.
Re: what is this bug, help guys pls. -
Boarden - 15.11.2018
You need to return 0 in OnPlayerText if you're trying to handle chat yourself.
Re: what is this bug, help guys pls. -
kevi11 - 15.11.2018
Thank you so much + 1
Re: what is this bug, help guys pls. -
CoaPsyFactor - 15.11.2018
If you return anything but 0 (or don't return anything), script will think that callback for some reason failed, and it will trigger (execute) default handler, that will cause issue you have.
Return status 0 means there were no problems and everything executed well - so in that case server (SA-MP executable) won't execute default handler.