Raised This Month: $ Target: $400
 0% 

Questions about callfunc_begin_i


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 02-06-2013 , 17:15   Questions about callfunc_begin_i
Reply With Quote #1

I read from Connor that the second parameter is the value returned from the register_plugin native.

So my question is:

When I create a native in one plugin. And I call that native from another one the parameters to the native handler in the main plugin that created the native are iPlugin and iParams. Is the iPlugin the plugin ID that can be used in the Callfun_begin_i native?

Example is below. I typed this out in notepad without highlighting so If i have typos sorry but you should be able to understand the basics of what i need

Spoiler


To explain in text:
  1. I create a native and send the class name and function call back.
  2. I add that class string name to an array.
  3. I add the plugin id and function id to a temp array.
  4. I add the temparray to a trie using the class name as a key.
  5. I delete the temparray. (or try to anyway)
  1. Option selected from menu (not in example thats the easy part)
  2. Use selection to send player index and selection index to the callfunction function
  3. select the classname from the array using the selection index
  4. grab the temp array from the trie using the class name
  5. call the function in the temp array slot 1 in the plugin slot 0
Doc-Holiday is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:29.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode