17.06.2017, 11:30
I'm making a new GM and I have this error
Lines:
Lines:
Code:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { switch(dialogid) { case DIALOG_REGISTER: { if(!response)return Kick(playerid); if(strlen(inputtext) < 3 || strlen(inputtext) > 30){ ShowRegisterDialog(playerid, "Your password must be between 3 and 30 characters."); } new query[128]; mysql_format(sqlConnection, query, sizeof(query), "INSERT INTO users(Name, Pass, IP) VALUES('%e', sha1('%e'), '%e')", GetName(playerid), inputtext, GetIP(playerid)); mysql_pquery(sqlConnection, query, "SQL_OnAccountRegister", "i", playerid); } } return false; }