Raised This Month: $ Target: $400
 0% 

Question about MultiForward


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 01-23-2010 , 12:24   Question about MultiForward
Reply With Quote #1

1-st plugin (main) :
PHP Code:
new g_TakeDamage;
// plugin_init
g_TakeDamage CreateMultiForward("d2_takedamage"ET_IGNOREFP_CELLFP_CELLFP_FLOAT);

// Other public function
public kaka(victimattacker)
{
      new 
Float:value;
      
ExecuteForwardg_TakeDamageg_iReturnvictimattackervalue);

      
// print here 'value' for example

.INC :
PHP Code:
forward d2_takedamage(victimattackerFloat:value); 
2-nd plugin :
PHP Code:
public d2_takedamage(victimattackerFloat:value)
{
    
value += value

I want that when you call forward in other plugin 'd2_takedamage' and change 'value' in that forward I want it to be changed in 1-st plugin, how to do it?
__________________
xbatista is offline
Send a message via Skype™ to xbatista
 


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 07:26.


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