Raised This Month: $ Target: $400
 0% 

wierd problem with FM_GetGameDescription


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 07-01-2018 , 15:08   Re: wierd problem with FM_GetGameDescription
Reply With Quote #1

I post exactly what I tried to do, with that code if I make a debug I receive a string like I format, but when tried to use the same string on the gamedescription stay blank
iceeedr is offline
Send a message via Skype™ to iceeedr
Old 07-01-2018, 16:01
Ghosted
This message has been deleted by Ghosted. Reason: dont think so
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 07-01-2018 , 16:03   Re: wierd problem with FM_GetGameDescription
Reply With Quote #3

Quote:
Originally Posted by iceeedr View Post
I post exactly what I tried to do, with that code if I make a debug I receive a string like I format, but when tried to use the same string on the gamedescription stay blank
Try that one posted by crazy.
__________________

[MOD] CS Weapon Mod V1.7.1
[MM] MetaMod-C V1.0
[MOD] CS NPC Mod (5%)


Probably Left AM

Last edited by Ghosted; 07-01-2018 at 16:03.
Ghosted is offline
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 07-02-2018 , 14:06   Re: wierd problem with FM_GetGameDescription
Reply With Quote #4

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


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