I have read the pawn manual and have seen support for function prototypes, but how can they be implemented in pawn scripts?
are you supposed to call them with a forward? like so?
Code:
// prototype?
forward somefunc( var1, var2 );
// then the actual function declared like this?
public somefunc( var1, var2 ) {
// ... some code in here
return PLUGIN_HANDLED;
}
My script is rather large, and I am having some issues with functions calling other functions or variables before they are defined (i use a multiple file approach already, so the two-parse functionality of pawn does not work).
I would like to start defining prototypes like traditional c-based languages, and just want to know if my syntax above is correct. Thanks.
__________________