[HELP] Saving Messages
#5

pawn Код:
public OnPlayerText(playerid, text[])
{
    new PlayerLog[60], Name[MAX_PLAYER_NAME], string[256];
    GetPlayerName(playerid, Name, sizeof(Name));
    format(PlayerLog, sizeof(PlayerLog), "logs/%s.txt", Name);
    new File:playerslog = fopen(PlayerLog, io_append);
    format(string, sizeof(string), "%s says: %s\r\n", Name, text);
    fwrite(playerslog, string);
    fclose(playerslog);
    return 1;
}
Reply


Messages In This Thread
[HELP] Saving Messages - by Saw® - 17.06.2012, 13:52
Re: [HELP] Saving Messages - by Kindred - 17.06.2012, 14:13
Re: [HELP] Saving Messages - by Saw® - 18.06.2012, 10:33
Re: [HELP] Saving Messages - by Saw® - 18.06.2012, 17:50
Re: [HELP] Saving Messages - by MadeMan - 18.06.2012, 18:06
Re: [HELP] Saving Messages - by MarinacMrcina - 18.06.2012, 18:11
Re: [HELP] Saving Messages - by MadeMan - 18.06.2012, 18:12
Re: [HELP] Saving Messages - by MarinacMrcina - 18.06.2012, 18:14
Re: [HELP] Saving Messages - by MadeMan - 18.06.2012, 18:21
Re: [HELP] Saving Messages - by Saw® - 19.06.2012, 09:03

Forum Jump:


Users browsing this thread: 3 Guest(s)