Raised This Month: $ Target: $400
 0% 

*SOLVED* - by Fysiks (Menu Add for AMXX Ban Snapshot)


Post New Thread Reply   
 
Thread Tools Display Modes
dorin2oo7
Senior Member
Join Date: Jun 2008
Location: Sibiu, Romania
Old 07-23-2009 , 19:10   Re: Menu Add for AMXX Ban Snapshot
Reply With Quote #11

I gues the current version should be ok



http://forums.alliedmods.net/showthread.php?t=90318
__________________
dorin2oo7 is offline
TitANious
Veteran Member
Join Date: Feb 2009
Location: Denmark
Old 07-23-2009 , 19:15   Re: Menu Add for AMXX Ban Snapshot
Reply With Quote #12

Could be But maybe this was a easyier method, but just leave it that way Fysiks is better than i am
__________________
I dislike this.

"A sneeze never comes alone!" <-- Important to remember.
TitANious is offline
Send a message via MSN to TitANious
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-24-2009 , 00:49   Re: Menu Add for AMXX Ban Snapshot
Reply With Quote #13

Quote:
Originally Posted by TitANious View Post
Hmm, maybe a easyier method I have problems looking in Fysiks code so here it goes.

You could add a "new j" (Just something)

Then if a admin uses it do: ++j

Then add some "if" statements?
What are you talking about?
__________________
fysiks is offline
TitANious
Veteran Member
Join Date: Feb 2009
Location: Denmark
Old 07-24-2009 , 06:31   Re: Menu Add for AMXX Ban Snapshot
Reply With Quote #14

I mean like
PHP Code:
public function_menuid )
{
    new 
0;
    
    if( 
== )
    {
        
menu_additem"Ban permanent""8")
        ++
j
    
}

    if( 
== )
    {
        
menu_additem"5 min""8")
        ++
j
    
}

    if( 
== )
    {
        
menu_additem"10 min""8")
        ++
j
    
}

    if( 
== )
    {
        
menu_additem"1440 min""8")
        
0;
    }

__________________
I dislike this.

"A sneeze never comes alone!" <-- Important to remember.
TitANious is offline
Send a message via MSN to TitANious
dorin2oo7
Senior Member
Join Date: Jun 2008
Location: Sibiu, Romania
Old 07-24-2009 , 18:28   Re: Menu Add for AMXX Ban Snapshot
Reply With Quote #15

don't you think that is kind of useless as now is set as arrays !?

I believe that fysiks mode is beter and less coded !!!
__________________
dorin2oo7 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-24-2009 , 22:05   Re: Menu Add for AMXX Ban Snapshot
Reply With Quote #16

Quote:
Originally Posted by TitANious View Post
I mean like
PHP Code:
public function_menuid )
{
    new 
0;
    
    if( 
== )
    {
        
menu_additem"Ban permanent""8")
        ++
j
    
}

    if( 
== )
    {
        
menu_additem"5 min""8")
        ++
j
    
}

    if( 
== )
    {
        
menu_additem"10 min""8")
        ++
j
    
}

    if( 
== )
    {
        
menu_additem"1440 min""8")
        
0;
    }

LOL. That will add all 4 items to the menu and each would end with the same result .

You obviously don't know how my code works. I just borrowed it from admincmd.sma.
__________________
fysiks is offline
TitANious
Veteran Member
Join Date: Feb 2009
Location: Denmark
Old 07-25-2009 , 06:00   Re: Menu Add for AMXX Ban Snapshot
Reply With Quote #17

Quote:
Originally Posted by TitANious View Post
Fysiks is better than i am
I meaned take his, it's probaly better coded. I just try to make an other method
__________________
I dislike this.

"A sneeze never comes alone!" <-- Important to remember.
TitANious is offline
Send a message via MSN to TitANious
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 05:49.


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