Advertisement
Niko_boy

Untitled

Dec 22nd, 2011
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. new filename[24];
  2. new File:users;
  3.  
  4. format(filename, 24, "irc_accounts/%s.txt", user);
  5. if (!fexist(filename))
  6. {
  7. users = fopen(filename, io_write);
  8. }
  9. else
  10. {
  11. users = fopen(filename, io_append);
  12. if (users)
  13. {
  14. new string[128];
  15. format(string,sizeof(string),"Name: %s Pass: %s",user,param);
  16.  
  17. fwrite(users, string);
  18. fwrite(users, "\r\n");
  19. fclose(users)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement