Simple error,can't spot mistake!!!
#1

SO,it's related to my register system,BUT I gave up using udb_hash,switched to Whirlpool,function that makes sense to me thanks to Y_less explanations,but as it's my first time using it,maybe I'm doing something wrong:

pawn Code:
//At the beggining of my code...
native WP_Hash(buffer[], len, const str[]);

//[........] some code that I am pretty sure it's errorless

//OnDialog response

//.........

         new INI:PFile = INI_Open(Accounts(playerid));
         INI_SetTag(PFile,"PlayerInfo");
         new hPass[129];
         WP_Hash(hPass,129,inputtext);
         INI_WriteInt(PFile,"Password",hPass); // ERROR:argument 3 type mismatch?(hPass :O)
The error is so annoying,and I don't know what's wrong,so if you need the whole code of my register system just tell me,but I don't think you need the whole code,the error occurs on a single line,on a single barrel,so....
Reply
#2

Isn't hPass a string?
Try INI_WriteString(PFile,"Password",hPass);
Reply
#3

yay thanks,maybe the problem is that suddenly I feel sick,I don't know why,and I'd like to sleep,anyways thx
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)