Raised This Month: $ Target: $400
 0% 

Does not show anything line 6


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Old 08-11-2014 , 18:50   Does not show anything line 6
Reply With Quote #1

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;
}

Last edited by Fuck For Fun; 08-11-2014 at 19:09.
Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun
 



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 13:08.


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