Guest User

Untitled

a guest
Jan 19th, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.08 KB | None | 0 0
  1. /*
  2. +---------------------------------------------------------------------------+
  3. ¦                                jLogs                                     ¦
  4. ¦***************************************************************************¦                                                                          
  5. ¦                                  by                                       ¦
  6. ¦***************************************************************************¦
  7. ¦                                 Jafet Macario                                ¦
  8. ¦***************************************************************************¦
  9. ¦[Include] jLogs - Write in logs easy                                       ¦
  10. +---------------------------------------------------------------------------+
  11. */
  12.  
  13. #include <a_samp>
  14.  
  15. /*
  16. native WriteLog(path[], string[]);
  17. */
  18.  
  19. forward WriteLog(path[], string[]);
  20. public WriteLog(path[], string[])
  21. {
  22.     new
  23.         entry[ 512 ]
  24.     ;
  25.     format(entry, sizeof(entry), "%s\r\n", string);
  26.     new File: hFile = fopen(path, io_append);
  27.     fwrite(hFile, entry);
  28.     fclose(hFile);
  29. }
Add Comment
Please, Sign In to add comment