Raised This Month: $ Target: $400
 0% 

DEBUG plugins are labeled as not running.


  
 
 
Thread Tools Display Modes
Author Message
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 12-29-2006 , 20:35   DEBUG plugins are labeled as not running.
#1

It appears that plugins that are in debug mode show as not running when you type amx_plugins..

41 plugins, 40 running

when one of the plugins is in debug mode.

BAILOPAN said this is most likely a bug.

Quote:
01:04:01 Currently loaded plugins:
name version author file status
Admin Base 1.76 AMXX Dev Team admin.amxx running
Admin Commands 1.76 AMXX Dev Team admincmd.amxx running
Admin Help 1.76 AMXX Dev Team adminhelp.amxx running
Slots Reservation 1.76 AMXX Dev Team adminslots.amxx running
Multi-Lingual Sys 1.76 AMXX Dev Team multilingual.am running
Menus Front-End 1.76 AMXX Dev Team menufront.amxx running
Commands Menu 1.76 AMXX Dev Team cmdmenu.amxx running
Players Menu 1.76 AMXX Dev Team plmenu.amxx running
Maps Menu 1.76a AMXX Dev Team mapsmenu.amxx running
Admin Chat 1.76 AMXX Dev Team adminchat.amxx running
Anti Flood 1.76 AMXX Dev Team antiflood.amxx running
Scrolling Message 1.76 AMXX Dev Team scrollmsg.amxx running
Info. Messages 1.76 AMXX Dev Team imessage.amxx running
Admin Votes 1.76 AMXX Dev Team adminvote.amxx running
NextMap 1.76 AMXX Dev Team nextmap.amxx running
TimeLeft 1.76 AMXX Dev Team timeleft.amxx running
Pause Plugins 1.76 AMXX Dev Team pausecfg.amxx running
01:04:01 Stats Configurati 1.76 AMXX Dev Team statscfg.amxx running
StatsX 1.76a AMXX Dev Team statsx.amxx running
unknown unknown unknown fullupdate.amxx running
Voicecomm ban 1.0.4 EKS voicecomm_ban.a running
Client Variables 1.0 SweatyBanana client_variable debug
22 plugins, 21 running

Last edited by SweatyBanana; 12-30-2006 at 02:58.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
juKay
Member
Join Date: Mar 2004
Location: Sweden
Old 12-30-2006 , 03:33   Re: DEBUG plugins are labeled as not running.
#2

Changing the last row to read something like "22 plugins, 21 running, 1 debug" would be good
juKay is offline
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 12-30-2006 , 12:12   Re: DEBUG plugins are labeled as not running.
#3

What good is knowing how many plugins are in debug mode? The user should know because he had entered "debug" into the configuration files. But if a plugin fails to load, the user should be notified about that, because it wasn't exactly his decision.

Unless I'm missing something, I'd count debug plugins as running.
__________________
hello, i am pm
PM is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 12-30-2006 , 17:49   Re: DEBUG plugins are labeled as not running.
#4

PM, he is saying that his plugins marked as "debug" are not considering running, in the "X plugins, Y running" count.

He has 22 listed, and all of them say either "running" or "debug" (none failed to load). However, at the very bottom of the list, it tells him "22 plugins, 21 running". It would appear as if his last plugin (marked as "debug") wasn't included as a running plugin.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 12-30-2006 , 18:02   Re: DEBUG plugins are labeled as not running.
#5

Code:
public cmdPlugins(id, level, cid)
{
    if (!cmd_access(id, level, cid, 1))
        return PLUGIN_HANDLED

    new name[32], version[32], author[32], filename[32], status[32]
    new lName[32], lVersion[32], lAuthor[32], lFile[32], lStatus[32]

    format(lName, 31, "%L", id, "NAME")
    format(lVersion, 31, "%L", id, "VERSION")
    format(lAuthor, 31, "%L", id, "AUTHOR")
    format(lFile, 31, "%L", id, "FILE")
    format(lStatus, 31, "%L", id, "STATUS")

    new num = get_pluginsnum()
    new running = 0
    
    console_print(id, "%L:", id, "LOADED_PLUGINS")
    console_print(id, "%-18.17s %-8.7s %-17.16s %-16.15s %-9.8s", lName, lVersion, lAuthor, lFile, lStatus)

    for (new i = 0; i <num; i++)
    {
        get_plugin(i, filename, 31, name, 31, version, 31, author, 31, status, 31)
        console_print(id, "%-18.17s %-8.7s %-17.16s %-16.15s %-9.8s", name, version, author, filename, status)
        
        if (equal(status, "running") || equal(status, "debug"))
            running++
    }
    console_print(id, "%L", id, "PLUGINS_RUN", num, running)

    return PLUGIN_HANDLED
}
Attached Files
File Type: sma Get Plugin or Get Source (admincmd.sma - 931 views - 24.8 KB)

Last edited by SweatyBanana; 12-30-2006 at 18:07.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 12-30-2006 , 18:45   Re: DEBUG plugins are labeled as not running.
#6

Quote:
Originally Posted by XxAvalanchexX View Post
PM, he is saying that his plugins marked as "debug" are not considering running, in the "X plugins, Y running" count.

He has 22 listed, and all of them say either "running" or "debug" (none failed to load). However, at the very bottom of the list, it tells him "22 plugins, 21 running". It would appear as if his last plugin (marked as "debug") wasn't included as a running plugin.
Indeed, I was referring to juKay's proposition, perhaps I should have clarified that
__________________
hello, i am pm
PM is offline
sawce
The null pointer exception error and virtual machine bug
Join Date: Oct 2004
Old 01-22-2007 , 07:35   Re: DEBUG plugins are labeled as not running.
#7

This is fixed in revision 3251.

Debug plugins are not counted on their own; instead (to be consistent with amxx plugins listing), they are tallied as running.
__________________
fyren sucks
sawce is offline
 



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 16:19.


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