Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case (DIALOG_REGISTER):
- {
- if(strlen(inputtext) < 7 || strlen(inputtext) > 17) return ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_PASSWORD,"Welcome!","Error & Please type an password with 7-15 charaters!","Register","Logout");
- mysql_real_escape_string(inputtext,pInfo[playerid][pPassword]);
- format(gQuery,357,"INSERT INTO accounts (username,password,tag,adminlevel,moneybank,kills,death,level) VALUES('%s','%s','%s','0','0','0','0','1')",pInfo[playerid][pName],inputtext,pInfo[playerid][pTag]);
- mysql_function_query(dbHandle,gQuery,false,"MySQL_AccountCreate", "d", playerid);
- pInfo[playerid][logged] = true;
- SendClientMessage(playerid,-1,"{ffffff}----- {c2ed14}Account Information {ffffff}-----");
- format(gString,256,"{c2ed14}Username{ffffff}: %s",pInfo[playerid][pName]);
- SendClientMessage(playerid,-1,gString);
- format(gString,256,"{c2ed14}Password{ffffff}: %s",inputtext);
- SendClientMessage(playerid,-1,gString);
- SendClientMessage(playerid,-1,"{ffffff}----- {c2ed14}Account Information {ffffff}-----");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement