12.06.2010, 03:41
It's important to forward tagged functions if you use the function before it's defined (this doesn't matter for untagged)... If you don't forward it before use in this scenario then you will get "warning 208: function with tag result used before definition, forcing reparse".
An example is the following script, if you don't forward it you will get a warning when you compile. If you put the line "forward MyFunc();" before it's used then all will be fine.
An example is the following script, if you don't forward it you will get a warning when you compile. If you put the line "forward MyFunc();" before it's used then all will be fine.
pawn Код:
#include <a_samp>
main() {
printf("%f", MyFunc());
}
stock Float:MyFunc()
return 13.37;