Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void mouseClicked()
- {
- //println(" === ", password+name, " === ");
- if (mouseX >= 709 && mouseY >= 939 && mouseX <= 1211 && mouseY <= 1054 && RegisterMenu == true){
- Waarning = "";
- JSONArray arr = new JSONArray();
- JSONObject json = new JSONObject();
- if(NewPassword.equals(NewPassword2) && NewPassword.length() >= 2){
- print(UserData.size());
- for (int iii = 0; iii < UserData.size(); iii++) {
- println(iii, "=========---------------------===================");
- if (iii >= UserData.size()){ ////////////////////////////////////////////////////////////////Начиная с этой строчки ничего не происходит.
- json.setString("name", NewName);
- json.setString("pn", NewPassword + NewName);
- arr.setJSONObject(0, json);
- UserData.setJSONArray(iii++, arr);
- println(" +++ ", NewPassword+NewName, " +++ ");
- }
- println("Hi");
- }
- saveJSONArray(UserData, "data/UserPN.json");
- }
- else{
- println("Пароли не совпадают.");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement