Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {"accounts","username varchar(34),password varchar(26),tag varchar(26),adminlevel int,moneybank int,kills int,death int,level int"}
- 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]);
- new string[1000];
- format(string, sizeof(string),"INSERT INTO accounts (username,password,tag,adminlevel,moneybank,kills,death,level)");
- format(string, sizeof(string),"%s VALUES('%s','%s','%s','0','0','0','0','1')", string,pInfo[playerid][pName],inputtext,pInfo[playerid][pTag]);
- mysql_function_query(dbHandle,string,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