I've read the wiki page on Natives over and over but I can't quite figure out how to use them.
Say in Plugin 1 I have this:
Code:
public APLRes:AskPluginLoad2(Handle:myself, bool:late, String:error[], err_max)
{
CreateNative("GetAmount", N_GetAmount);
}
native Getamount();
public N_GetAmount(Handle:plugin, numParams)
{
return amount;
}
I'm not entirely sure if I am doing that correctly, if someone could verify that. It compiles fine, however.
Then, in Plugin 2 I try to use it somewhere, but it of course doesn't compile because it has no idea of what's going on in plugin 1 (Undefined symbol). I think I need to put something in an include file but I have no idea what, if anyone could help it would be greatly appreciated!
__________________