24.10.2010, 21:02
Will logging my chat lagg my server? Because people tend to write much and i don't know is it a good idea (but i really need it). So will it lagg or im just being paranoid?
forward ChatLog(string[]); // At top.
public ChatLog(string[]) // Function.
{
new entry[256];
format(entry, sizeof(entry), "%s\r\n",string);
new File:hFile;
hFile = fopen("RPG/Logs/chat.log", io_append);
fwrite(hFile, entry);
fclose(hFile);
}
new string[256]; // Where i want to use.
format(string, sizeof(string), "........",variables,variables); // Format the string.
ChatLog(string); // And save.