Raised This Month: $ Target: $400
 0% 

wierd problem with FM_GetGameDescription


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 06-29-2018 , 21:51   wierd problem with FM_GetGameDescription
Reply With Quote #1

Hello friends, once again I ask for a light for a strange problem, In the example below when I try to change the name of the game to the name of the mod I am receiving an empty string, however if I debug the message with a %s, I get perfectly string, what's wrong?


PHP Code:
register_forward(FM_GetGameDescription"GameDesc")

public 
GameDesc() 

    static 
szMod[20]
    
get_gamemode(szModcharsmax(szMod))
    
forward_return(FMV_STRINGfmt("[%s]"szMod))
    return 
FMRES_SUPERCEDE
}

get_gamemode(szBuffer[], iLen)
{
    if(
something)
             
formatex(szBufferiLen"something")
        
    else if(
any)    
          
formatex(szBufferiLen"any")


Last edited by iceeedr; 06-29-2018 at 21:54.
iceeedr is offline
Send a message via Skype™ to iceeedr
 



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 12:50.


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