NEED HELP - MD5_Hash ERROR - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: NEED HELP - MD5_Hash ERROR (
/showthread.php?tid=267952)
NEED HELP - MD5_Hash ERROR -
Micheal_ - 10.07.2011
Quote:
error 033: array must be indexed (variable "MD5_Hash")
|
Код:
if(strlen(inputtext) < 3 || INI_ReadString(file,"Password") != MD5_Hash(inputtext))
Whats wrong here?
Re: NEED HELP - MD5_Hash ERROR -
Micheal_ - 10.07.2011
UP. I need this.
Re: NEED HELP - MD5_Hash ERROR -
Sergei - 10.07.2011
You need strcmp to compare strings.
Re: NEED HELP - MD5_Hash ERROR -
Micheal_ - 10.07.2011
Can you help me with this?
Re: NEED HELP - MD5_Hash ERROR -
Micheal_ - 10.07.2011
Like where to place the strcmp( ?
Re: NEED HELP - MD5_Hash ERROR -
Mauzen - 10.07.2011
strcmp(stringA, stringB)
returns FALSE when both strings are the same. So:
!strcmp(INI_ReadString(file,"Password"), MD5_Hash(inputtext))
Re: NEED HELP - MD5_Hash ERROR -
Micheal_ - 10.07.2011
Quote:
if(!strcmp(INI_ReadString(file, "Password"), MD5_Hash(inputtext))
|
Error:
Quote:
error 035: argument type mismatch (argument 1)
|