Raised This Month: $ Target: $400
 0% 

function or plugin broken?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 08-25-2013 , 20:49   function or plugin broken?
Reply With Quote #1

This code goes not updated when player get info (Server List)

PHP Code:
#include <amxmodx>
#include <fakemeta>

new p_Name;

public 
plugin_init()
{
    
register_plugin("Game Namer","1.1","NeuroToxin");

    
p_Name register_cvar("amx_gamename","Counter-Strike");
    
    
register_forward(FM_GetGameDescription,"FM_GameDesc");
}

public 
FM_GameDesc()
{
    new 
szName[32];
    
get_pcvar_string(p_Name,szName,charsmax(szName));
    
    
forward_return(FMV_STRING,szName);
    
    return 
FMRES_SUPERCEDE;

Any Suggestion updates?
__________________
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
devilicioux
Veteran Member
Join Date: Jun 2013
Location: Delhi,India
Old 08-26-2013 , 05:07   Re: function or plugin broken?
Reply With Quote #2

Quote:
Originally Posted by ^SmileY View Post
This code goes not updated when player get info (Server List)

PHP Code:
#include <amxmodx>
#include <fakemeta>

new p_Name;

public 
plugin_init()
{
    
register_plugin("Game Namer","1.1","NeuroToxin");

    
p_Name register_cvar("amx_gamename","Counter-Strike");
    
    
register_forward(FM_GetGameDescription,"FM_GameDesc");
}

public 
FM_GameDesc()
{
    new 
szName[32];
    
get_pcvar_string(p_Name,szName,charsmax(szName));
    
    
forward_return(FMV_STRING,szName);
    
    return 
FMRES_SUPERCEDE;

Any Suggestion updates?
Check if fakemeta is enabled ? Also
In server.cfg, put amx_gamename "Gamename goes here"
__________________
You keep bringing ANTICHRISTUS down .. He will rise again and kick asses !

#RespectList ANTICHRISTUS fysiks Bugsy

Most Common Errors You Can Encounter Every Now and Then
devilicioux is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 08-26-2013 , 07:12   Re: function or plugin broken?
Reply With Quote #3

Quote:
Originally Posted by devilicioux View Post
Check if fakemeta is enabled ? Also
In server.cfg, put amx_gamename "Gamename goes here"
sorry i not explained better, is not updating hostname i refer to function broken not plugin working

Last updates are borken with FMV_String set, and did not setting game name correctly.
__________________
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
sami_spt
Veteran Member
Join Date: Sep 2012
Location: I<3 pussy cats
Old 08-26-2013 , 07:26   Re: function or plugin broken?
Reply With Quote #4

yea.. after the last update the game name changer doesn't work..

it works for me when I edit the .sma rather than adding in server.cfg amx_gamename....
sami_spt is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 08-26-2013 , 07:54   Re: function or plugin broken?
Reply With Quote #5

Quote:
Originally Posted by sami_spt View Post
yea.. after the last update the game name changer doesn't work..

it works for me when I edit the .sma rather than adding in server.cfg amx_gamename....
Wrong, is not changing according to cvar, it is only changing in first time when FMV_String is used..
__________________
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
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 19:14.


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