Raised This Month: $ Target: $400
 0% 

How to get admin's information from users.ini


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 06-07-2015 , 17:50   Re: How to get admin's information from users.ini
Reply With Quote #1

Quote:
Originally Posted by BaD CopY View Post
Bugsy, sorry but again I don't understend how did you do it...

Can you help me about motd. I want if you can make and if is it possible, next page to motd (See my second photo, #5 comment)
Did you look up the function?

native parse(const text[], ... );

The function will parse the string in pieces of connected characters (can have no spaces or other possible delimiters) or characters enclosed in quotes (can have spaces or delimiter characters). It accepts a variable number of parameters which tells it how many pieces of data you want to parse. In this instance, we want 2 pieces, but there is a section in the middle that we do not want, which is the password field. A variable must be specified there as a placeholder in order to get to the next piece of data that is desired (flags).

<name|ip|steamid> <password> <access flags> <account flags>

szLine[] = "STEAM_0:0:12345" "" "abcdefghijklmnopqrstu" "ce"
parse( szLine , szAdminArray[ iAdminIndex ][ 0 ] , iMaxChars , szTmp , 1 , szAdminArray[ iAdminIndex ][ 1 ] , iMaxChars );
__________________

Last edited by Bugsy; 06-07-2015 at 17:57.
Bugsy is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-07-2015 , 17:53   Re: How to get admin's information from users.ini
Reply With Quote #2

Quote:
Originally Posted by Bugsy View Post
parse will parse the string in pieces of connected characters (can have no spaces) or characters enclosed in quotes (can have spaces).
There are characters other than a space that will be interpreted as the delimiter by the parse() function. For example, SteamIDs must always be in quotes because the colon (:) is interpreted as a delimiter. FYI. IIRC.
__________________

Last edited by fysiks; 06-07-2015 at 17:53.
fysiks 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 20:05.


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