10.05.2013, 09:00
(
Последний раз редактировалось BossZk; 11.05.2013 в 06:32.
)
In the logs it saves in a straight line, for example : "pm from bob(1):gfdf pm to max(2):gdjdkjdad"
i want it to use a new line for every pm, example:
Pm from bob(1): blahblah
Pm to max(2): blahblah
probably an easy fix for you guys
i want it to use a new line for every pm, example:
Pm from bob(1): blahblah
Pm to max(2): blahblah
probably an easy fix for you guys
PHP код:
forward PMLog(string[]);
PHP код:
public PMLog(string[])
{
new pm[128]; // Creates a new string
format(pm, sizeof(pm), "%s\n", string); // Formats the string;
new File:hFile; // Creates a new variable with type File
hFile = fopen("/LOGS/pm.log", io_append); // Opens the Log File
fwrite(hFile, pm); // Writes the log
fclose(hFile); // Closes file
}