AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Does not show anything line 6 (https://forums.alliedmods.net/showthread.php?t=246086)

Fuck For Fun 08-11-2014 18:50

Does not show anything line 6
 
And Why Last Login and name - not working for all?
Code:

public menu_admins(id)
{
    if(!(get_user_flags(id) & ADMIN_IMMUNITY))
    {
        ColorChat(id, NORMAL, "^3ERROR:^1 You have no access")
        return PLUGIN_HANDLED
    }

    new menu = menu_create("\wAdmins Menu", "menu_handler")
    new AdminData[data], Buffer[160], LKname[32], LKlogin[28], timestamp

    for(new i = 0; i < AdminCount; i++)
    {
        ArrayGetArray(g_admins, i, AdminData)    //get admindata
        if(fvault_get_data(VaultName, AdminData[AuthData], LKname, 31, timestamp)) // find last name saved
        {
            format_time(LKlogin, 27, "%m/%d/%Y - %I:%M:%S %p", timestamp)
        }
        else
        {
            copy(LKname, 31, "\rNot Found")
            copy(LKlogin, 27, LKname)
        }
        formatex(Buffer, 159, "\w%s \d| \r-\wLast name: \y%s \d| \r-\wLast login: \y%s", AdminData[AuthData], LKname, LKlogin /*AdminData[Password], AdminData[Access], AdminData[Flags]*/)
        menu_additem(menu, Buffer)
    }

    menu_display(id, menu, 0)
    return 0;
}

http://up410.siz.co.il/up1/jnttjabonwij.png

Nextra 08-11-2014 19:01

Re: Does not show anything line 6
 
Menus have a maximum size that is mandated by the engine. You display way too much information and need to cut down to 3-5 items per page at most.

Fuck For Fun 08-11-2014 19:08

Re: Does not show anything line 6
 
Quote:

Originally Posted by Nextra (Post 2182515)
Menus have a maximum size that is mandated by the engine. You display way too much information and need to cut down to 3-5 items per page at most.

you mean that shit
Code:

\d| \r-
can't add more size?

Nextra 08-11-2014 19:47

Re: Does not show anything line 6
 
No it's a plain old character limit. You can't increase it.

Fuck For Fun 08-11-2014 20:17

Re: Does not show anything line 6
 
Quote:

Originally Posted by Nextra (Post 2182537)
No it's a plain old character limit. You can't increase it.

And Why Last Login and name - not working for all?

maybe i need put the plugin before admin.amxx?

fysiks 08-11-2014 21:37

Re: Does not show anything line 6
 
Quote:

Originally Posted by Fuck For Fun (Post 2182552)
And Why Last Login and name - not working for all?

maybe i need put the plugin before admin.amxx?

Did you forget to read what Nextra said? Please go back and read what he posted.

Fuck For Fun 08-12-2014 15:17

Re: Does not show anything line 6
 
i allready read that, i explain you again...look at picture i can't see the link 6/7/8 and the next "9"

I think the problem is coming from
Quote:

for (new i = 0; i <AdminCount; i ++)
{
Not enough space
So I ask you, if there is another way to do this menu, see everything?
Explanation if possible.

fysiks 08-12-2014 16:53

Re: Does not show anything line 6
 
Again, it seems you are not capable of reading Nextra's posts. He said that there is a character limit. The only solution to a character limit is to reduce the number of characters to below the character limit. He told you one method to do that in his first post.

Fuck For Fun 08-13-2014 11:07

Re: Does not show anything line 6
 
i know, but i ask If you can prepare it in a different way, a menu?

fysiks 08-13-2014 12:08

Re: Does not show anything line 6
 
Quote:

Originally Posted by Fuck For Fun (Post 2183477)
i know, but i ask If you can prepare it in a different way, a menu?

You can reduce the number of characters being used per page . . . this was said already. What other answer are you expecting? If you are asking for an alternative to a menu then you haven't given enough information. What is the purpose of this menu/plugin?


All times are GMT -4. The time now is 13:08.

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