Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case 1:
- var user, pass;
- user=readstring();
- pass=readstring();
- if(file_exists(string(user) + ".ini")) {
- ini_open(string(user) + ".ini");//first problem I saw
- p=ini_read_string("Account Info","Password",string_decrypt());
- if(p!=pass)
- {
- clearbuffer();
- writebyte(4);
- writestring("Your password is wrong");
- sendmessage(connections[i]);
- console_add_line("User was diconnected, due the wrong password, named "+string(user))
- } else {
- clearbuffer();
- writebyte(5);
- writestring("Logging in was sucefull, welcome "+string(user)+".");
- sendmessage(connections[i]);
- console_add_line(string(user)+"has been sucefully connected to server");
- }
- ini_close();
- break;//no break again
- }
Add Comment
Please, Sign In to add comment