Raised This Month: $12 Target: $400
 3% 

chat manager help!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
polas19
Junior Member
Join Date: Jul 2021
Old 10-25-2021 , 08:52   chat manager help!
Reply With Quote #1

hi,

I have a private chat manager plugin and I want to fix some error and I don't know how.

the plugin is working perfectly but this error annoying me.

AMXX 1.9 + Latest HLDS.

I have debug enabeld but is not giving info.
Error:
PHP Code:
Function "is_status_visible" was not found
[AMXXRun time error 19 (plugin "chat_manager_prefix.amxx") - debug not enabled!
[
AMXXTo enable debug modeadd "debug" after the plugin name in plugins.ini (without quotes).
[
AMXXRun time error -(plugin "chat_manager_prefix.amxx") - debug not enabled
thanks.

Last edited by polas19; 10-28-2021 at 17:55. Reason: removed plugin code, because private.
polas19 is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 10-25-2021 , 09:27   Re: chat manager help!
Reply With Quote #2

Debug is not enabled, that's what the error logs say. Share your plugins.ini file to check if you enabled "debug" correctly.

From what i can tell, this is where your error comes from:

PHP Code:
public plugin_natives()
{
     
register_native("cm_is_status_visible""is_status_visible");
}

public 
_is_status_visible(pluginargc) return is_status_visible(get_param(1));
is_status_visible(id)
{
    return 
g_toggle[id];

__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
polas19
Junior Member
Join Date: Jul 2021
Old 10-25-2021 , 11:10   Re: chat manager help!
Reply With Quote #3

Quote:
Originally Posted by Napoleon_be View Post
Debug is not enabled, that's what the error logs say. Share your plugins.ini file to check if you enabled "debug" correctly.

From what i can tell, this is where your error comes from:

PHP Code:
public plugin_natives()
{
     
register_native("cm_is_status_visible""is_status_visible");
}

public 
_is_status_visible(pluginargc) return is_status_visible(get_param(1));
is_status_visible(id)
{
    return 
g_toggle[id];

my plugins.ini
PHP Code:
AMX Mod X plugins

Admin Base Always one has to be activated
admin
.amxx        admin base (required for any admin-related)
;
admin_sql.amxx        admin base SQL version (comment admin.amxx)

Basic
admincmd
.amxx        basic admin console commands
adminhelp
.amxx        help command for admin console commands
adminslots
.amxx        slot reservation
multilingual
.amxx    Multi-Lingual management

Menus
menufront
.amxx        front-end for admin menus
cmdmenu
.amxx        command menu (speechsettings)
plmenu.amxx        players menu (kickbanclient cmds.)
;
telemenu.amxx        teleport menu (Fun Module required!)
mapsmenu.amxx        maps menu (votechangelevel)
pluginmenu.amxx        Menus for commands/cvars organized by plugin

Chat Messages
adminchat
.amxx        console chat commands
antiflood
.amxx        prevent clients from chat-flooding the server
scrollmsg
.amxx        displays a scrolling message
imessage
.amxx        displays information messages
adminvote
.amxx        vote commands

Map related
nextmap
.amxx        displays next map in mapcycle
mapchooser
.amxx        allows to vote for next map
timeleft
.amxx        displays time left on map

Configuration
pausecfg
.amxx        allows to pause and unpause some plugins
statscfg
.amxx        allows to manage stats plugins via menu and commands

Counter-Strike
;restmenu.amxx        restrict weapons menu
statsx
.amxx        stats on death or round end (CSX Module required!)
;
miscstats.amxx        bunch of events announcement for Counter-Strike
;stats_logging.amxx    weapons stats logging (CSX Module required!)


Custom Add 3rd party plugins here
chat_manager
.amxx debug 
polas19 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-25-2021 , 23:10   Re: chat manager help!
Reply With Quote #4

Your plugins.ini looks fine so it seems it hasn't been re-loaded or isn't loaded properly so that it will get the debug flag.

Napoleon_be is likely right about where the error comes from. If you notice, the register_native() function is trying to use a function that is not a valid function for use as a native. I.e. is_status_visible() is not supposed to be called as a native but _is_status_visible() is designed for it. Fix that and your error will likely go away.
__________________
fysiks is offline
polas19
Junior Member
Join Date: Jul 2021
Old 10-26-2021 , 05:18   Re: chat manager help!
Reply With Quote #5

Quote:
Originally Posted by fysiks View Post
Your plugins.ini looks fine so it seems it hasn't been re-loaded or isn't loaded properly so that it will get the debug flag.

Napoleon_be is likely right about where the error comes from. If you notice, the register_native() function is trying to use a function that is not a valid function for use as a native. I.e. is_status_visible() is not supposed to be called as a native but _is_status_visible() is designed for it. Fix that and your error will likely go away.
I appreciate your answer and explanation I understand what you mean, but I have a small problem.

I came here and posted because I don't really know how to fix the error, I'm not a coder or something, could you possibly do it and fix the error?
polas19 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-26-2021 , 22:20   Re: chat manager help!
Reply With Quote #6

Simply replace "is_status_visible" with "_is_status_visible" in the register_native() function call and then recompile.
__________________
fysiks 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 23:26.


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