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(szMod, charsmax(szMod))
forward_return(FMV_STRING, fmt("[%s]", szMod))
return FMRES_SUPERCEDE
}
get_gamemode(szBuffer[], iLen)
{
if(something)
formatex(szBuffer, iLen, "something")
else if(any)
formatex(szBuffer, iLen, "any")
}