Quote:
Originally Posted by BaD CopY
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 );
__________________