AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Problem with pwd script... (https://forums.alliedmods.net/showthread.php?t=84222)

rectos 01-22-2009 15:21

Problem with pwd script...
 
......

danielkza 01-22-2009 15:23

Re: Problem with pwd script...
 
You can't compare strings using '=='. Also, you're ignoring the first char of the password.

Use 'if(equali(output,password))' instead.

danielkza 01-22-2009 15:32

Re: Problem with pwd script...
 
Quote:

Originally Posted by rectos (Post 748282)
Now it's "output[1]=='p'", I just want to check a letter.

I've changed the code, still doesn't work.

Are you sure you know what you're doing? Checking a single letter for a password is not a good idea at all. Show me at least the function where this code is, and tell me exactly what you want to achieve (compare a single letter, check the whole password, etc)


All times are GMT -4. The time now is 01:49.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.