Question about weird error - 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: Question about weird error (
/showthread.php?tid=393072)
Question about weird error -
jakejohnsonusa - 16.11.2012
I just added my Flying test to the OnPlayerEnterRaceCheckpoint area and I get this odd warning. The test works fine, but ther warning is annoying.
Here is the warning:
Код:
warning 209: function "Streamer_OnPlayerEnterRaceCP" should return a value
Please do NOT say, relax it's just a warning. I know that! I want to get rid of it. Even if it is unimportant.
Thanks:
jakejohnsonusa
I am using incognitos streamer if that is needed...
Re: Question about weird error -
Betamaster - 16.11.2012
The function is expecting a value to be returned as per the warning, so the last line of code that executes in this function should be a return statement.
Re: Question about weird error -
PockerFace - 16.11.2012
Listen, may this warning came only bec you wrote something wrong and you can get more information about how to script to prevent this warning to come again, search for a thing to prevent this warning again at
http://forum.sa-mp.com/forumdisplay.php?f=70 or wait a pro scripter to reply you with the thing that will remove this problem.
Re: Question about weird error -
jakejohnsonusa - 16.11.2012
"The function is expecting a value to be returned as per the warning, so the last line of code that executes in this function should be a return statement."
That's what I did wrong. Thanks!
+1 Rep
Re: Question about weird error -
PockerFace - 19.11.2012
No problems it's helpers job

, i wish to prevent this problem again