23.09.2016, 07:37
I'm not quite sure why the explanation wasn't enough, but...
Let's say we have this function:
If I use the function in OnPlayerConnect:
The function will be added to the .amx file.
If the function isn't used and has stock, it won't be added to the .amx file and it won't give you a warning. It will only exist in the source code (.pwn).
If the function is like below (without stock) and isn't used, instead:
You'll get a warning.
If it is used, you won't get a warning.
- Stock makes things that use it lack from the compiled source.
Let's say we have this function:
pawn Code:
stock Function(a)
{
if(a)
{
return 1;
}
return 0;
}
pawn Code:
Function(0);
If the function isn't used and has stock, it won't be added to the .amx file and it won't give you a warning. It will only exist in the source code (.pwn).
If the function is like below (without stock) and isn't used, instead:
pawn Code:
Function(a)
{
if(a)
{
return 1;
}
return 0;
}
If it is used, you won't get a warning.
- Stock makes things that use it lack from the compiled source.