This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Admin Sorting Not Working


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Yeef
Member
Join Date: Jun 2011
Old 06-20-2011 , 12:48   Admin Sorting Not Working
Reply With Quote #1

Checking my error log this happens everytime SourceMod tries to load admin_sorting.txt:
Quote:
[adminmenu.smx] Could not load admin menu config (file "addons\sourcemod\configs\adminmenu_sorting.t xt": Line contained too many invalid tokens)
The result is that my menus are sorted alphabetically rather than how I want them to be sorted.

Here is my file:
Code:
"Menu"
{
    "PlayerCommands"
    {"
        "item"        "sm_kick"
        "item"        "sm_ban"
        "item"        "sm_bandisconnected"
        "item"        "sm_gag"
        "item"        "sm_slay"
        "item"        "sm_slap
        "item"        "sm_burn"
        "item"        "sm_beacon"
        "item"        "sm_freeze"
        "item"        "sm_timebomb"
        "item"        "sm_firebomb"
        "item"        "sm_freezebomb"
    }

    "ServerCommands"
    {
        "item"        "sm_map"
        "item"        "sm_execcfg"
        "item"        "sm_reloadadmins"
    }

    "VotingCommands"
    {
        "item"        "sm_cancelvote"
        "item"        "sm_votemap"
        "item"        "sm_votekick"
        "item"        "sm_voteban"
    }
}
I even tried resetting the file to the example found on the wiki but I get the same error. I don't get any other error messages besides this one.

Plugins running on the server:

SourceMod 1.3.7
Mapchooser Extended 1.6.3
Ban Disconnected Players 1.0.3
gScramble 3.0.7
Spray Tracer 5.8a
Melee Only 0.2.9
Immunity4Replay 3.4.0
Yeef is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 06-20-2011 , 13:19   Re: Admin Sorting Not Working
Reply With Quote #2

What happened is that the bracket on the line after "PlayerCommands" has an extra quote mark after it.

Try this instead:
Code:
"Menu"
{
    "PlayerCommands"
    {
        "item"        "sm_kick"
        "item"        "sm_ban"
        "item"        "sm_bandisconnected"
        "item"        "sm_gag"
        "item"        "sm_slay"
        "item"        "sm_slap
        "item"        "sm_burn"
        "item"        "sm_beacon"
        "item"        "sm_freeze"
        "item"        "sm_timebomb"
        "item"        "sm_firebomb"
        "item"        "sm_freezebomb"
    }

    "ServerCommands"
    {
        "item"        "sm_map"
        "item"        "sm_execcfg"
        "item"        "sm_reloadadmins"
    }

    "VotingCommands"
    {
        "item"        "sm_cancelvote"
        "item"        "sm_votemap"
        "item"        "sm_votekick"
        "item"        "sm_voteban"
    }
}
Note: I haven't tested this as I'm at work right now.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Yeef
Member
Join Date: Jun 2011
Old 06-20-2011 , 13:59   Re: Admin Sorting Not Working
Reply With Quote #3

D'oh!

Don't know how I missed that. That fixed it. Thanks.
Yeef is offline
micazoid
Veteran Member
Join Date: Oct 2010
Location: Munich - Germany
Old 06-20-2011 , 15:10   Re: Admin Sorting Not Working
Reply With Quote #4

Quote:
D'oh!

Don't know how I missed that.
It is always stuff like that XD
__________________
micazoid is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 06-20-2011 , 15:23   Re: Admin Sorting Not Working
Reply With Quote #5

Quote:
Originally Posted by micazoid View Post
It is always stuff like that XD
QFE.

You find this out when you try writing your own plugins. It's always the simple stuff that gets you.

And it gets worse when you start writing extensions, and find out what's simple in a plugin isn't quite so simple in an extension...
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
micazoid
Veteran Member
Join Date: Oct 2010
Location: Munich - Germany
Old 06-20-2011 , 15:37   Re: Admin Sorting Not Working
Reply With Quote #6

Quote:
It's always the simple stuff that gets you.
agreed ^^
__________________
micazoid is offline
Reply



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:23.


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