02.09.2018, 23:35
Quote:
HTML Code:
Dialog:DIALOG_REGISTER(playerid, response, listitem, inputtext[]) { if(!response) return Kick(playerid); new passhash[257]; SHA256_PassHash(inputtext, #SALT, passhash, sizeof passhash); pInfo[playerid][Password] = passhash; new query[256]; format(query, sizeof(query), "INSERT INTO `users` (`Password`, `Name`, `IP`) VALUES ('%s', '%s', '%s')", passhash, pName[playerid], pInfo[playerid][IP]); gSQL = mysql_tquery(gSQL, query, "OnPlayerRegister", "i", playerid); Dialog_Show(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "alone", "Please enter your password.", "Enter", "Exit"); return 1; } |
1.Print the query after formating it and check (debug)
2.Does OnPlayerRegister get called? (you can check with debug)
3.Check mysql_logs for any errors