Guest User

Untitled

a guest
Dec 6th, 2017
393
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.09 KB | None | 0 0
  1.            case 1:
  2.                 var user, pass;
  3.                 user=readstring();
  4.                 pass=readstring();
  5.                 if(file_exists(string(user) + ".ini")) {
  6.                     ini_open(string(user) + ".ini");//first problem I saw
  7.                     p=ini_read_string("Account Info","Password",string_decrypt());
  8.                     if(p!=pass)
  9.                     {
  10.                         clearbuffer();
  11.                         writebyte(4);
  12.                         writestring("Your password is wrong");
  13.                         sendmessage(connections[i]);
  14.                         console_add_line("User was diconnected, due the wrong password, named "+string(user))
  15.                            
  16.                     } else {
  17.                 clearbuffer();
  18.                         writebyte(5);
  19.                         writestring("Logging in was sucefull, welcome "+string(user)+".");
  20.                         sendmessage(connections[i]);
  21.                         console_add_line(string(user)+"has been sucefully connected to server");   
  22.             }
  23.             ini_close();
  24.                         break;//no break again
  25.                  
  26.                 }
Add Comment
Please, Sign In to add comment