Thread: [Solved] GameName Issue.
View Single Post
deprale
Senior Member
Join Date: Oct 2018
Location: Leeds
Old 02-14-2019 , 15:23   Re: [NOT SOLVED] GameName Issue.
Reply With Quote #25

Quote:
Originally Posted by PartialCloning View Post
PHP Code:
public Description()
{
    new 
GameDescription[32];

    if(
IsMatchLive)
        
formatex(GameDescriptioncharsmax(GameDescription), "[T] %d - %d [CT]"score_teamONEscore_teamTWO);
    else
        
formatex(GameDescriptioncharsmax(GameDescription), "[%s]-MIX-%s"g_Tagg_Version);

    
Steam_SetGameDescription(GameDescription);

But you should use the following where you set IsMatchLive to true and to false.
PHP Code:
if(Steam_IsLoaded())
{
    new 
GameDescription[32];
    
formatex(GameDescriptioncharsmax(GameDescription), "", ...);
    
Steam_SetGameDescription(GameDescription);

Thanks, it worked!
__________________
deprale is offline