Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- +---------------------------------------------------------------------------+
- ¦ jLogs ¦
- ¦***************************************************************************¦
- ¦ by ¦
- ¦***************************************************************************¦
- ¦ Jafet Macario ¦
- ¦***************************************************************************¦
- ¦[Include] jLogs - Write in logs easy ¦
- +---------------------------------------------------------------------------+
- */
- #include <a_samp>
- /*
- native WriteLog(path[], string[]);
- */
- forward WriteLog(path[], string[]);
- public WriteLog(path[], string[])
- {
- new
- entry[ 512 ]
- ;
- format(entry, sizeof(entry), "%s\r\n", string);
- new File: hFile = fopen(path, io_append);
- fwrite(hFile, entry);
- fclose(hFile);
- }
Add Comment
Please, Sign In to add comment