Please help with feed back
#2

pawn Код:
stock SendFeedback(playerid, text[])
{
    new
     File:lFile = fopen("Feedback.txt", io_append), /* change this to your folder where you want to save the feedback */
     logData[150],
        fyear, fmonth, fday,
        fhour, fminute, fsecond;
    getdate(fyear, fmonth, fday);
    gettime(fhour, fminute, fsecond);
    format(logData, sizeof(logData),"[%02d/%02d/%04d %02d:%02d:%02d] %s: %s \r\n", fday, fmonth, fyear, fhour, fminute, fsecond, GetName(playerid), text);
    fwrite(lFile, logData);
    fclose(lFile);
    return 1;
}

stock GetName(playerid)
{
    new Name[24];
    GetPlayerName(playerid, Name, 24);
    return Name;
}

// usage:
SendFeedback(playerid, inputtext)
Reply


Messages In This Thread
Please help with feed back - by MA_proking - 20.09.2011, 09:07
Re: Please help with feed back - by Wesley221 - 20.09.2011, 09:12

Forum Jump:


Users browsing this thread: 1 Guest(s)