Raised This Month: $ Target: $400
 0% 

callfunc_push_str(string, true) only return single letter


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 07-07-2012 , 23:11   Re: callfunc_push_str(string, true) only return single letter
Reply With Quote #5

Quote:
Originally Posted by ConnorMcLeod View Post
Dynamic natives are more efficient, and appropriated for what you are doing. Forget callfunc !!
I'm aware dynamic natives are more efficient and appropriate, that is why i tried them first. But how would you suggest i set up a dynamic native for the string to go back to the core, so the core can handle everything. This is especially important if i have more than one extension adding more than one hud string. THIS is the case that i'm trying to account for.

EDIT: This is how i set up the dynamic native (my original design) but it didn't do what i wished for it to, though did what i needed successfully.

PHP Code:
new g_hudFwd
// init
    
g_hudFwd CreateMultiForward("bkf_setHud"ET_CONTINUEFP_CELLFP_CELLFP_STRINGFP_CELL)

// calling function
new retVal
    
if( !ExecuteForward(g_hudFwdretValid ,g_PowerHudpuscharsmax(pus)) )
    {
        
ShowSyncHudMsg(idg_PowerHudpus)    // show hud message of powers
        
log_amx("[BKF] bkf_setHud was not fired properly.")
    }
    else if(!
retVal)
    {
        
ShowSyncHudMsg(idg_PowerHudpus)
        
client_print(idprint_chat"bkf_setHud returned 0")
    } 
__________________
What an elegant solution to a problem that doesn't need solving....

Last edited by Liverwiz; 07-07-2012 at 23:14.
Liverwiz is offline
 



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 15:06.


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