Raised This Month: $51 Target: $400
 12% 

Creating forwards with multiple parameters.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 07-25-2016 , 13:08   Creating forwards with multiple parameters.
Reply With Quote #1

I know how to make an fake forward with an parameter ( The index ), but how can you make an fake forward with multiple parameters?

Just a random exam. to understand what i need:

PHP Code:
#include <amxmodx>

new FwdPointerRet=0;
public 
plugin_init( )
{
    
FwdPointer CreateMultiForward"example"ET_IGNORE FP_CELL );
}

public 
client_putinserverid )
{
    new 
Variable1 20;
    new 
Variable2 15;

    
ExecuteForwardFwdPointerRetid )

    
// How can i make To return more stuffs, to having return also the 'Variabile1' and 'Variabile2' ?
    // Like:
    // forward example( id, Variable1, Variable2 );

Craxor is offline
Send a message via ICQ to Craxor
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 07-25-2016 , 13:14   Re: Creating forwards with multiple parameters.
Reply With Quote #2

doc
As you can see here, it says it's a list, so just list multiple of them.
PHP Code:
FwdPointer CreateMultiForward("example"ET_IGNOREFP_CELLFP_CELLFP_CELL);
// ...
ExecuteForward(FwdPointerRetid133769); 
klippy is offline
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 07-25-2016 , 14:03   Re: Creating forwards with multiple parameters.
Reply With Quote #3

Quote:
Originally Posted by KliPPy View Post
doc
As you can see here, it says it's a list, so just list multiple of them.
PHP Code:
FwdPointer CreateMultiForward("example"ET_IGNOREFP_CELLFP_CELLFP_CELL);
// ...
ExecuteForward(FwdPointerRetid133769); 
Thx, i will get back with answer

Works perfect, thank you

Last edited by Craxor; 07-27-2016 at 11:47.
Craxor is offline
Send a message via ICQ to Craxor
Reply



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 18:14.


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