05.06.2012, 21:11
All the register/login systems ive found while searching uses a hash for the password, but im kind of evil so I dont want hashed passwords in the user file. I made my own register/login dialog system with Dini but as always I get errors with inputtext.
I always get these errors while trying to make a register/login system without hash.
Can someone help me fix them?
Error:
Row (under register dialog):
Error:
Rows (under logindialog):
I always get these errors while trying to make a register/login system without hash.
Can someone help me fix them?
Error:
Code:
C:\Server\gamemodes\test.pwn(120) : error 035: argument type mismatch (argument 3)
pawn Code:
dini_IntSet(file, "password", inputtext);
Error:
Code:
C:\Server\gamemodes\test.pwn(144) : error 033: array must be indexed (variable "inputtext")
pawn Code:
(142)if(strlen(inputtext))
(143){
(144) if(inputtext != dini_Int(file, "password"))
(145) {
(146) ShowPlayerDialog(playerid, 1336, DIALOG_STYLE_PASSWORD, "Login", "Wrong password!", "Login", "Cancel");
(147) }
(148) else
(149) {
(150) //Log in the player
(151) }