Userid

From EventScripts Community Encyclopedia

userid is typically one of the following:

  • an event variable passed-in by an event. Usually seen as

event_var(userid)

  • a parameter passed to a function that could easily be sent the event variable.

For example, player_say provides the event variable userid.

A userid is a unique identifier for a player. Each player has their own userid. Only one player can have that userid until the server restarts. Userids grow sequentially. If Bob has a userid of 3 then Steve joins he will have a userid of 4 and so on.

Every command (besides es_getuserid) that requires an input in Eventscripts will require a userid to be entered. An example is:

es_tell event_var(userid) Your userid is: event_var(userid)

This will tell the player with the userid inside of event_var(userid) what exactly his or her userid is.

blog comments powered by Disqus