Raised This Month: $ Target: $400
 0% 

Help with callfunc


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Author Message
souvikdas95
Senior Member
Join Date: Mar 2012
Old 03-28-2014 , 06:07   Re: Help with callfunc
#1

Suppose I have a function that returns a value ( integer ). How do I get the return value of the function based on the parameters I sent through callfunc_push_array?

EDIT - The plugin is remote... The function is not declared in the same plugin. For your perusal, think about "get_score" function in amxmodx/data/csstats.amxx

Last edited by souvikdas95; 03-28-2014 at 06:09.
souvikdas95 is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 03-28-2014 , 06:24   Re: Help with callfunc
#2

Quote:
Originally Posted by souvikdas95 View Post
Suppose I have a function that returns a value ( integer ). How do I get the return value of the function based on the parameters I sent through callfunc_push_array?

EDIT - The plugin is remote... The function is not declared in the same plugin. For your perusal, think about "get_score" function in amxmodx/data/csstats.amxx
One question per thread - please start your own thread for this. And before you do, I recommend that you search for Dynamic Natives, since callfunc is not a good method.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
Closed Thread



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 22:30.


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