Raised This Month: $ Target: $400
 0% 

Problem with pwd script...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 01-22-2009 , 15:23   Re: Problem with pwd script...
Reply With Quote #1

You can't compare strings using '=='. Also, you're ignoring the first char of the password.

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

Community / No support through PM
danielkza is offline
Old 01-22-2009, 15:27
rectos
This message has been deleted by rectos.
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 01-22-2009 , 15:32   Re: Problem with pwd script...
Reply With Quote #3

Quote:
Originally Posted by rectos View Post
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)
__________________

Community / No support through PM
danielkza is offline
Old 01-22-2009, 15:41
rectos
This message has been deleted by rectos.
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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