SA-MP Forums Archive
Errors - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Errors (/showthread.php?tid=487422)



Errors - boomerboom - 13.01.2014

Код:
                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



Re: Errors - Kirollos - 13.01.2014

first, remove the semicolon,

second, use strcmp when comparing between two strings


Re: Errors - Vince - 13.01.2014

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.


Re: Errors - boomerboom - 13.01.2014

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.


Re: Errors - [WA]iRonan - 13.01.2014

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