Errors
#1

Код:
                if(udb_hash(inputtext) == PlayerInfo[playerid][pPass]);
                {

Код:
C:\Users\\Desktop\SAMP\filterscripts\PayPal.pwn(174) : error 017: undefined symbol "PlayerInfo"
C:\Users\\Desktop\SAMP\filterscripts\PayPal.pwn(174) : warning 215: expression has no effect
C:\Users\\Desktop\SAMP\filterscripts\PayPal.pwn(174) : error 001: expected token: ";", but found "]"
C:\Users\\Desktop\SAMP\filterscripts\PayPal.pwn(174) : error 029: invalid expression, assumed zero
C:\Users\\Desktop\SAMP\filterscripts\PayPal.pwn(174) : fatal error 107: too many error messages on one line
Reply
#2

first, remove the semicolon,

second, use strcmp when comparing between two strings
Reply
#3

The udb_hash function only generates numbers, so using the comparison operator is valid. Though this code is incredibly insecure. This kind of "hash" can be cracked in mere seconds. Adler32 (which is wat udb_hash is) is a checksum algorithm rather than a hashing algorithm.
Reply
#4

Quote:
Originally Posted by Vince
Посмотреть сообщение
The udb_hash function only generates numbers, so using the comparison operator is valid. Though this code is incredibly insecure. This kind of "hash" can be cracked in mere seconds. Adler32 (which is wat udb_hash is) is a checksum algorithm rather than a hashing algorithm.

Umm...Just tell me how to fix it.
Reply
#5

Not really fitting with the question but if you want security use Whirlpool, it's more secure.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)