Difference between revisions of "Manual:DIL Manual/check password()"
Jump to navigation
Jump to search
(XML import) |
(No difference)
|
Latest revision as of 13:08, 27 May 2020
Function: integer check_password( u : unitptr, s : string ) ;
u the unit that you want to check the password of s the password you are using to check Return Returns an integer TRUE if pcname is the units password FALSE if not
This function checks the string against the units password and returns TRUE if they match. Example: ---~---~---~---~---~---~---~---~---
if (not check_password(pc,arg)) { sendtext (arg+" is not "+pc.name"'s password.",self); quit; }
---~---~---~---~---~---~---~---~---
---~---~---~---~---~---~---~---~---