Quote:
Originally Posted by ► James_Alex
try this
pawn Код:
}
public OnPlayerText(playerid, text[]) { new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); new day, month, year, minu, sec, hour; gettime(hour, minu, sec); getdate(year, month, day); new str[128]; format(str, 128, "%s says in (%d/%d/%d) at (%d:%d:%d): %s", name, day, month, year, sec, minu, hour, text); new File:lFile; lFile = fopen("log.txt", io_append); fwrite(lFile, str); fwrite(lFile, "\n\r"); fclose(lFile); return 1; }
|
Hmm... Okay thanks very much
Note: What is that '}' at the start of pawn code?
Quote:
Originally Posted by brett7
use a translator
when you use printf it shows in the log i think
|
Thanks, if James_Alex's version don't works, i will use your version.