14.02.2013, 14:07
(
Последний раз редактировалось iggy1; 14.02.2013 в 21:48.
)
Quote:
Originally Posted by Kyosaur
AmxLoad(AMX*):
This is called when a new AMX instance is loaded into the server. This will be called for every filterscript/gamemode! Because of this it isn't a good idea to store a single AMX instance for the entire plugin, instead use a queue/list/vector. In this function we also register our custom native functions we wish to provide PAWN with |
I have had a look in other plugins but still not sure if or why i need to use this.
Thanks in advance.
EDIT: I know i need to use AmxLoad(AMX*) to register the natives to the amx, just wondering why i would need to store the amx in a container.
EDIT2: I think i get it now, if an amx is unloaded most data that it pointed to, in the plugin becomes redundant. Going to have to re-download the documentation.