[Solved]Djson Register System Error
#1

Hello,

When I try to compile my register system, I get the following error

Код:
error 033: array must be indexed (variable "dj")
On this lines of code:

Код:
stock AccountCheckLogin(nickname[], pwd[])
{
	new tmp[255];
	format(tmp, sizeof(tmp), "%s/password", nickname);
	if(dj("Accounts.json", tmp) == MD5_Hash(pwd)) //THis one exactly
	{
	  return true;
 	}
 	return false;
}
Thanks for your help
Reply
#2

Never Mind, i already found a way to do it

For anyone that wants the answer:

String are not compared that way, instead you use this:

Код:
if(strcmp(dj("Accounts.json", tmp), MD5_Hash(pwd), true)==0)
{
  return true;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)