-
Notifications
You must be signed in to change notification settings - Fork 50
Manual:DIL Manual check password()
iamnove edited this page Jan 18, 2023
·
61 revisions
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; }
---~---~---~---~---~---~---~---~---
---~---~---~---~---~---~---~---~---