error 033: array must be indexed (variable "inputtext")
#10

Quote:
Originally Posted by (SF)Noobanatior
Посмотреть сообщение
ok so you have inow as a intger getting read frome the file and inputtext as a string you cant compare theres is the password only numbers or is that hash value? if so what is your hash method?
Quote:
Originally Posted by bigcomfycouch
Посмотреть сообщение
You appear to be trying to load a string as an integer, thus the argument type mismatch when attempting to use strcmp.
The posts I quoted are basically the only two useful posts so far.

Your 'Password' is most likely to be a string, but you're loading it as an integer:
pawn Код:
inpw = dini_Int(file, "password");
Now I don't know a damn about dini (Nor would I like to know about it ), but first you should make 'inpw' a string and not an integer:
pawn Код:
new inpw[128];
Secondly you should load the password the way you should (dini_Get?):
pawn Код:
inpw = dini_Get(file, "password");
Now to compare it with another string, you must use strcmp. This function returns zero when succesful, so:
pawn Код:
if(!strcmp(inputtext, inpw) && countpw < 4)
Good luck, if you got any questions please post 'm here again.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)