Raised This Month: $ Target: $400
 0% 

FM_GetGameDescription error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 12-23-2008 , 17:57   FM_GetGameDescription error
Reply With Quote #1

When i use

PHP Code:
 
register_forward
(FM_GetGameDescription"fw_GetGameDescription")
 
public 
fw_GetGameDescription()
{
        
forward_return(FMV_STRINGg_modname)
        return 
FMRES_SUPERCEDE;

I get this error in my server

Quote:
FATAL ERROR (shutting down): Cache_TryAlloc: 2331792 is greater then free hunk.
__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 12-24-2008 , 10:31   Re: FM_GetGameDescription error
Reply With Quote #2

'g_modname' must contain something, like a string.
__________________

anakin_cstrike is offline
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 12-24-2008 , 10:34   Re: FM_GetGameDescription error
Reply With Quote #3

Yes

PHP Code:
new const KZ_PLUGIN_VERSION[] = "1.5 Beta"
new g_modname[32]
 
public 
plugins_inits()
formatex(g_modname31"Kz-Arg Mod %s"KZ_PLUGIN_VERSION
I do without a string and i have the same problem
__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 12-24-2008 , 10:59   Re: FM_GetGameDescription error
Reply With Quote #4

PHP Code:
#define VERSION "1.5 Beta"
new g_modname[32] = "KZ MOD" 
PHP Code:
    format(g_modname31"%s"VERSION

Last edited by xbatista; 12-24-2008 at 11:08.
xbatista is offline
Send a message via Skype™ to xbatista
IneedHelp
Veteran Member
Join Date: Mar 2007
Location: Argentina
Old 12-24-2008 , 11:09   Re: FM_GetGameDescription error
Reply With Quote #5

AntiBots's version is fine..Why he should put it like that? :/
__________________
IneedHelp is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 12-24-2008 , 11:10   Re: FM_GetGameDescription error
Reply With Quote #6

He says:
Quote:
I do without a string and i have the same problem
VERSION nevermind.
I'm about the problem.
PHP Code:
new g_modname[32] = "KZ MOD"  

    
format(g_modname31

Last edited by xbatista; 12-24-2008 at 11:12.
xbatista is offline
Send a message via Skype™ to xbatista
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 12-24-2008 , 11:12   Re: FM_GetGameDescription error
Reply With Quote #7

then try
PHP Code:
forward_return(FMV_STRING"KZ-Arg Mod %s"KZ_PLUGIN_VERSION); 
not sure will it work?
__________________
xPaw is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-24-2008 , 11:14   Re: FM_GetGameDescription error
Reply With Quote #8

Quote:
Originally Posted by xPaw View Post
then try
PHP Code:
forward_return(FMV_STRING"KZ-Arg Mod %s"KZ_PLUGIN_VERSION); 
not sure will it work?
You can't format a string in forward_return native.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 12-24-2008 , 11:40   Re: FM_GetGameDescription error
Reply With Quote #9

This error is because the update of HLDS?

The server crash only with that forward. If i remove they for perfect.
__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 12-24-2008 , 11:45   Re: FM_GetGameDescription error
Reply With Quote #10

Example: :}}}
PHP Code:
new g_modname[32] = "KZ MOD- gamename"

public plugin_init()
{
    
format(g_modname31"%s %s"PLUGINVERSION)
    
register_forward(FM_GetGameDescription,        "fw_GameDescription")
}

public 
fw_GetGameDescription()
{
        
forward_return(FMV_STRINGg_modname)
        return 
FMRES_SUPERCEDE;

P.S. It works for me fine.

Last edited by xbatista; 12-24-2008 at 11:54.
xbatista is offline
Send a message via Skype™ to xbatista
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 09:08.


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