SA-MP Forums Archive
Simple error,can't spot mistake!!! - 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)
+--- Thread: Simple error,can't spot mistake!!! (/showthread.php?tid=315287)



Simple error,can't spot mistake!!! - Cjgogo - 02.02.2012

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....


Re: Simple error,can't spot mistake!!! - [XST]O_x - 02.02.2012

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


Re: Simple error,can't spot mistake!!! - Cjgogo - 02.02.2012

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