Raised This Month: $32 Target: $400
 8% 

wierd problem with FM_GetGameDescription


Post New Thread Reply   
 
Thread Tools Display Modes
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 07-02-2018 , 14:14   Re: wierd problem with FM_GetGameDescription
Reply With Quote #11

That is because FM_GetGameDescription is called once per map
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 07-02-2018 , 15:03   Re: wierd problem with FM_GetGameDescription
Reply With Quote #12

Maybe its fault of other plugin or module or gamedll or enginedll or game
__________________

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


Probably Left AM
Ghosted is offline
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 07-02-2018 , 16:56   Re: wierd problem with FM_GetGameDescription
Reply With Quote #13

Quote:
Originally Posted by ^SmileY View Post
That is because FM_GetGameDescription is called once per map
If I use reHlds with regamedll I can make this function work normally, would I have any possibility of doing this in the common HLDS?
iceeedr is offline
Send a message via Skype™ to iceeedr
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 07-04-2018 , 23:20   Re: wierd problem with FM_GetGameDescription
Reply With Quote #14

Bump
iceeedr is offline
Send a message via Skype™ to iceeedr
TBagT
Member
Join Date: Aug 2016
Location: Lithuania
Old 07-07-2018 , 16:00   Re: wierd problem with FM_GetGameDescription
Reply With Quote #15

Try this, works for me
PHP Code:
#include <amxmodx>
#include <fakemeta>

new g_modname64 ];

public 
plugin_init( ) {
    
register_forwardFM_GetGameDescription"fw_get_game_description" );
    
formatexg_modnamecharsmaxg_modname ), "Test Mod" );
}

// Forward Get Game Description
public fw_get_game_description( ) {
    
forward_returnFMV_STRINGg_modname );
    return 
FMRES_SUPERCEDE;

TBagT is offline
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 07-07-2018 , 16:20   Re: wierd problem with FM_GetGameDescription
Reply With Quote #16

If this one not work too, then something other causes problem
__________________

[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-07-2018 at 16:20.
Ghosted is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 05-08-2020 , 07:56   Re: wierd problem with FM_GetGameDescription
Reply With Quote #17

Strangely it glues in when changing map with MAP command instead of CHANGELEVEL.
__________________
DJEarthQuake is offline
Reply


Thread Tools
Display Modes

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 18:30.


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