Quote:
Originally Posted by SpiritEvil
Also you can access a public function using a timer but you can't access stocks (as far as I know). As for the speed I'm not sure which is faster.
|
Quote:
Originally Posted by T0pAz
Stock Functions.
|
Have you benchmarked that? No, you didn't. Also, stock is not an initializer, but merely a modifier. It can be used with single variables as well and can be omitted for regular functions. Something like:
pawn Код:
static const stock Float:coordinates[][3] = { /* ... */ };
is not something uncommon for me to write.
pawn Код:
FunctionName(OptinalParameters[]) {}
Also works. The compiler will give a warning if the function is not used, which may or may not be more helpful.