For password identification
#8

strcmp function returns 0 if the strings passed to the function match. Also, you should check the case sensitivity of the password, changing the bool: ignore_case parameter to false.
pawn Код:
if( !strcmp( PlayerData[ playerid ][ pPassword ], inputtext, false ) )
{
   // Load data
}
Also, I highly recommend you hash/encrypt your passwords.
Reply


Messages In This Thread
For password identification - by juraska - 08.08.2011, 18:44
Re: For password identification - by AndreT - 08.08.2011, 20:12
Re: For password identification - by FireCat - 08.08.2011, 20:14
Re : For password identification - by Soumi - 08.08.2011, 20:16
Re: For password identification - by Vince - 08.08.2011, 20:31
Re: For password identification - by juraska - 08.08.2011, 20:39
Re: For password identification - by juraska - 08.08.2011, 21:25
Re: For password identification - by Grim_ - 08.08.2011, 21:28
Re: For password identification - by juraska - 08.08.2011, 21:42

Forum Jump:


Users browsing this thread: 1 Guest(s)