AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   chat manager help! (https://forums.alliedmods.net/showthread.php?t=334891)

polas19 10-25-2021 08:52

chat manager help!
 
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.

Napoleon_be 10-25-2021 09:27

Re: chat manager help!
 
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];



polas19 10-25-2021 11:10

Re: chat manager help!
 
Quote:

Originally Posted by Napoleon_be (Post 2761634)
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 


fysiks 10-25-2021 23:10

Re: chat manager help!
 
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.

polas19 10-26-2021 05:18

Re: chat manager help!
 
Quote:

Originally Posted by fysiks (Post 2761689)
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?

fysiks 10-26-2021 22:20

Re: chat manager help!
 
Simply replace "is_status_visible" with "_is_status_visible" in the register_native() function call and then recompile.


All times are GMT -4. The time now is 23:16.

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