Raised This Month: $12 Target: $400
 3% 

if equal steamid


Post New Thread Reply   
 
Thread Tools Display Modes
CHE4TER
Member
Join Date: Jul 2013
Location: Portugal
Old 06-07-2014 , 16:40   Re: if equal steamid
Reply With Quote #11

Quote:
Originally Posted by fysiks View Post
If the admin's SteamID is in the list, they will be shown two menus (the SteamID specific one and then the User one overwrites it).

Also, to improve efficiency, I would consider using a Trie for the SteamIDs. You will no longer need to use a loop to determine if they are in the list, it would change your loop to an if statement. This would make it easier solve the problem above because you could simply to else ifs for everything else.
Is there any way to open the steamid menu without user menu?
And what trie?
CHE4TER is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-07-2014 , 23:11   Re: if equal steamid
Reply With Quote #12

Quote:
Originally Posted by CHE4TER View Post
Is there any way to open the steamid menu without user menu?
Yes. If the SteamID is not in the list, don't display the user menu (you currently have it such that it will always be shown).

Quote:
Originally Posted by CHE4TER View Post
And what trie?
Search.
__________________
fysiks is offline
CHE4TER
Member
Join Date: Jul 2013
Location: Portugal
Old 06-08-2014 , 05:03   Re: if equal steamid
Reply With Quote #13

Quote:
Originally Posted by fysiks View Post
Yes. If the SteamID is not in the list, don't display the user menu (you currently have it such that it will always be shown).



Search.
So for the steamids I must create only one menu with a different /say?
CHE4TER is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 06-08-2014 , 08:48   Re: if equal steamid
Reply With Quote #14

No, just throw a return in there after sending the SteamID menu successfully.
__________________
Black Rose is offline
CHE4TER
Member
Join Date: Jul 2013
Location: Portugal
Old 06-10-2014 , 10:09   Re: if equal steamid
Reply With Quote #15

code?
CHE4TER is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 06-10-2014 , 11:30   Re: if equal steamid
Reply With Quote #16

Code:
    for(new i = 1; i < sizeof SteamIDs; i++)     {         if(equal(szSteamID, SteamIDs[i]))         {             // Menu shiz             return         }     }
__________________
Black Rose is offline
Reply


Thread Tools
Display Modes

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 06:15.


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