zp50_log.inc
Original include source with line numbers.
| 1 | #if defined _zp50_log_included |
| 2 | #endinput |
| 3 | #endif |
| 4 | #define _zp50_log_included |
| 5 | |
| 6 | /** |
| 7 | * This is used to log ZP-specific information/errors into a |
| 8 | * location where it is separate from other messages. |
| 9 | **/ |
| 10 | stock zp_log(const message_fmt[], any:...) |
| 11 | { |
| 12 | static message[256], filename[32], date[16]; |
| 13 | vformat(message, charsmax(message), message_fmt, 2); |
| 14 | format_time(date, charsmax(date), "%Y%m%d"); |
| 15 | formatex(filename, charsmax(filename), "ZombiePlague_%s.log", date); |
| 16 | log_to_file(filename, "%s", message); |
| 17 | } |
| 18 | /** AMXX-Studio Notes - DO NOT MODIFY BELOW HERE |
| 19 | *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par } |
| 20 | */ |
| 21 | |