error 033: array must be indexed (variable "tmp")
#2

pawn Код:
mysql_fetch_field_row(tmp,"Password");
if(strcmp(udb_hash(inputtext) ,true, tmp));
you can't use strings like that, they are just arrays of chars
the first line is passing the var into it so no need for tmp=

and the second youll need to use strcmp like i showed,
you cant do
if(string==otherstring)

EDIT:

ops!
Vince is correct, I dont use this hash as its to weak

new code

pawn Код:
mysql_fetch_field_row(tmp,"Password");
if (udb_hash(inputtext) != strval(tmp))
this should work..
not sure if its better to convert to integer or to format the pass into a string.
Reply


Messages In This Thread
error 033: array must be indexed (variable "tmp") - by adampoconnor - 09.05.2012, 20:35
Re: error 033: array must be indexed (variable "tmp") - by Jonny5 - 09.05.2012, 20:43
Re: error 033: array must be indexed (variable "tmp") - by Vince - 09.05.2012, 20:51
Re: error 033: array must be indexed (variable "tmp") - by adampoconnor - 09.05.2012, 21:14

Forum Jump:


Users browsing this thread: 1 Guest(s)