Raised This Month: $ Target: $400
 0% 

How to get admin's information from users.ini


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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 #11

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
 



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