Advertisement
WildWave

Untitled

Jul 5th, 2015
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. case (DIALOG_REGISTER):
  2. {
  3. 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");
  4. mysql_real_escape_string(inputtext,pInfo[playerid][pPassword]);
  5. 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]);
  6. mysql_function_query(dbHandle,gQuery,false,"MySQL_AccountCreate", "d", playerid);
  7. pInfo[playerid][logged] = true;
  8. SendClientMessage(playerid,-1,"{ffffff}----- {c2ed14}Account Information {ffffff}-----");
  9. format(gString,256,"{c2ed14}Username{ffffff}: %s",pInfo[playerid][pName]);
  10. SendClientMessage(playerid,-1,gString);
  11. format(gString,256,"{c2ed14}Password{ffffff}: %s",inputtext);
  12. SendClientMessage(playerid,-1,gString);
  13. SendClientMessage(playerid,-1,"{ffffff}----- {c2ed14}Account Information {ffffff}-----");
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement