Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* jVerify retorna o valor de algum arquivo.ini existente : false,
- jCreateAccount cria um arquivo com nome de %s.ini juntamente com a senha, sem criptografia.
- */
- new File:j, str[128], write[128], Key_[128], Item_[128], nn[MAX_PLAYER_NAME];
- stock jVerify(accFile[]) {
- format(str, 40, "%s.ini", accFile);
- return fexist(str);
- }
- stock jCreateAccount(accFile[], senha[]) {
- format(str, 40, "%s.ini", accFile);
- if(fexist(str))
- return false;
- j = fopen(str, io_write);
- if(j)
- {
- format(write, 50, "Senha = %s", senha);
- fwrite(j, write);
- fclose(j);
- return printf("Conta criada, nick: %s, senha: %s", accFile, senha), true;
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment