[Solved]Djson Register System 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: [Solved]Djson Register System Error (
/showthread.php?tid=110933)
[Solved]Djson Register System Error -
sant - 29.11.2009
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
Re: Register System Error -
sant - 29.11.2009
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;
}