19.02.2015, 11:50
Quote:
Code:
UpdateSpectatingStatus Code:
public OnPlayerCommandText(playerid, cmdtext[]) Code:
strcmp Code:
strtok |
Stock will make the compiler ignore something if it's not used in your script, thereby also hiding warnings/errors, and not including it in your .amx file.
Example of a normal function:
pawn Code:
FuncName(parameters)
pawn Code:
stock FuncName(parameters)
pawn Code:
new stock VariableName;
I believe that public functions can be called between filterscripts etc. by adding it like this:
pawn Code:
public FuncName(parameters)
But in that example, both "stock" and "public" is useless, unless you wanna use it between scripts.