Chat Log
#6

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.
Reply


Messages In This Thread
Chat Log - by AG Adam - 31.08.2009, 18:32
Re: Chat Log - by MenaceX^ - 31.08.2009, 19:31
Re: Chat Log - by brett7 - 01.09.2009, 02:31
Re: Chat Log - by AG Adam - 01.09.2009, 11:26
Re: Chat Log - by brett7 - 01.09.2009, 14:06
Re: Chat Log - by AG Adam - 02.09.2009, 13:27
Re: Chat Log - by AG Adam - 02.09.2009, 13:33

Forum Jump:


Users browsing this thread: 1 Guest(s)