Difference between revisions of "Manual:DIL Manual/isplayer()"

From DikuMUD Wiki
Jump to navigation Jump to search
(XML import)
 
(XML import)
 
Line 1: Line 1:
 
 
 
<span id="bfisplayer"></span>
 
<span id="bfisplayer"></span>
  
Line 18: Line 16:
  
 
  if (not isplayer(arg))
 
  if (not isplayer(arg))
        {
+
---~---~---~---~---~---~---~---~---
        sendtext (arg+" is not a character.&amp;n",self);
+
 
        quit;
+
</i><!--ENDCODE-->
        }
+
 
 +
 
  
 +
---~---~---~---~---~---~---~---~---
 +
<span id="bfisplayer"></span>
  
 +
'''Function:'''  <i><!--CODE-->integer isplayer( pcname : string ) ;</i><!--ENDCODE-->
 +
 +
<!--TERM-->  '''pcname'''
 +
<!--DEFINITION-->        the name of the player being checked
 +
<!--TERM-->  '''Return'''
 +
<!--DEFINITION-->        Returns an integer TRUE if pcname is a player FALSE if not
  
 +
This function is used to find out if a string you pass to it is a player or not.
 +
This can be used and is used to find out if a player is truly a player that an
 +
Administrator is deleting with out having that player on line.
 +
'''Example:'''
 +
<i><!--CODE-->
 
  ---~---~---~---~---~---~---~---~---
 
  ---~---~---~---~---~---~---~---~---
 +
 +
if (not isplayer(arg))
 +
---~---~---~---~---~---~---~---~---
  
 
  </i><!--ENDCODE-->
 
  </i><!--ENDCODE-->

Latest revision as of 22:38, 4 December 2025

Function:  integer isplayer( pcname : string ) ;
  pcname
         the name of the player being checked
  Return
         Returns an integer TRUE if pcname is a player FALSE if not
This function is used to find out if a string you pass to it is a player or not.
This can be used and is used to find out if a player is truly a player that an
Administrator is deleting with out having that player on line.
Example:

---~---~---~---~---~---~---~---~---
if (not isplayer(arg))

---~---~---~---~---~---~---~---~---



---~---~---~---~---~---~---~---~---

Function:  integer isplayer( pcname : string ) ;
  pcname
         the name of the player being checked
  Return
         Returns an integer TRUE if pcname is a player FALSE if not
This function is used to find out if a string you pass to it is a player or not.
This can be used and is used to find out if a player is truly a player that an
Administrator is deleting with out having that player on line.
Example:

---~---~---~---~---~---~---~---~---
if (not isplayer(arg))

---~---~---~---~---~---~---~---~---



---~---~---~---~---~---~---~---~---