07.07.2011, 22:09
Quote:
Check out the invoke script incognito made for his streamer plugin. To get it setup (without dependencies) you need to change all of his unordered_maps into regular STL maps, allocated memory for the "invoke" pointer (do this upon load), push_back the amx_list on amxload, and delete the AMX instance from the amx_list when AmxUnload is called.
Thats how you correctly set it up. To get it working you have to call the memeber function getAddresses (i suggest on GM load), and you have to add your own natives (it currently only contains object related natives). You add the native's names to the list of names in invoke.h, and you fill the Native structure for it right below that (try to follow the pattern of the ones already there if you dont know what your doing). Once thats done, simply add a call to the native function in a public PAWN function (one thats not for use...this function should contain a call for every function you add to invoke... the functions have to be used in a public in order to get their addresses.). |