Est StrLen

From EventScripts Community Encyclopedia
Syntax: est_StrLen <variable> <string>
Note: Command parameters are described inside the < and > characters. Optional parameters are contained within [ and ] characters.

Contents

Description

  • Returns the length of string and stores in variable

Parameters

  • variable - The variable to store the returned value in
  • string - The string to count

Example


event player_activate
{
  es_xset myvar 0
  es est_StrLen myvar event_var(es_username)
  es_tell event_var(userid) Your username is server_var(myvar) characters long!!
  // Tells a player how many characters long their username is when they connect to the server.
}

Notes

  • None

See Also

blog comments powered by Disqus