08.05.2009, 21:45
Hi, thank you.
I changed it, and it works perfect:
But i still have a question, i want to add theese params in the TXT File:
|%s/%s|%s:%s|%s: %s |(%s)| (day, month, hour, minute, player, message, IP)
How can i set that? it would be like this:
|8/5|10:46|[MFC]Sylar: I suggest blah blah |(127.0.0.1)|
Thanx a lot!!!
I changed it, and it works perfect:
Code:
dcmd_suggest(playerid, params[]) { new string[128]; if (sscanf(params, "s", string)) { new File:handle = fopen("suggestions.txt", io_append); format(string, 128, "%s\r\n", string); fwrite(handle, string); fclose(handle); SendClientMessage(playerid, 0xC0C0C0FF, "Suggestion Send"); } else { SendClientMessage(playerid, 0xC0C0C0FF, "USAGE: /suggest [text]"); } return 1; }
|%s/%s|%s:%s|%s: %s |(%s)| (day, month, hour, minute, player, message, IP)
How can i set that? it would be like this:
|8/5|10:46|[MFC]Sylar: I suggest blah blah |(127.0.0.1)|
Thanx a lot!!!