Raised This Month: $ Target: $400
 0% 

wierd problem with FM_GetGameDescription


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 07-02-2018 , 14:06   Re: wierd problem with FM_GetGameDescription
Reply With Quote #11

Quote:
Originally Posted by Ghosted View Post
Try that one posted by crazy.
It's the same as mine, but okay! Tested and disapproved, any ideas?

PHP Code:
register_forward(FM_GetGameDescription"GameDesc")

get_mode(szBuffer[], iLen)
{
    if(
GameItsUp))
    
formatex(szBufferiLen"Load")
}
public 
GameDesc() 

    static 
szMod[20], szName[20]
    
get_mode(szModcharsmax(szMod))
    
formatex(szNamecharsmax(szName), "[%s]"szMod)
    
forward_return(FMV_STRINGszName// here I received a blank gamename "Load"
    
return FMRES_SUPERCEDE
}

public 
EventNewRnd()
{
    
GameItsUp true
    
static szMod[20]
    
get_mode(szModcharsmax(szMod))
    
    
CC_SendMatched(0RED"%s"szMod// here I received a perfectly string 


Last edited by iceeedr; 07-02-2018 at 14:11.
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