Es token
From EventScripts Community Encyclopedia
|
OverviewSyntax: Note: Command parameters are described inside the
< and > characters. Optional parameters are contained within [ and ] characters.Variation of this command that doesn't expand variables: {{{x}}} DescriptionSets a variable to the part of the string corresponding with token#. It splits up the string according to the seperator-character which defaults to space. Parameters
Examples//Example 1: es_xsetinfo mystring "This is the string that you're extracting the token from." es_xsetinfo token4 0 es_xsetinfo token7 0 es_token token4 server_var(mystring) 4 //will be "string" es_token token7 server_var(mystring) 7 //will be "extracting" //Example 2: es_xsetinfo mystring "a=1,b=2,c=3,d=4,e=5" es_xsetinfo token2 0 es_xsetinfo token5 0 es_token token2 server_var(mystring) 2 , //will be "b=2" es_token token5 server_var(mystring) 5 , //will be "e=5"
Notes
See also
External linkses_xtoken
|
