[HELP] Server crash on linux
#5

this simple code is crashing the server only in linux

Code:
if(strcmp(cmdtext, "/actualizardata", true) == 0)
	{

    actualizardata(playerid);
    SendClientMessage(playerid, COLOR_YELLOW, "actualizar");
    return 1;
	}




public actualizardata(playerid)
{
    new File:gstats;
    new pname[24];
    new str[256];
    new ccurdate = getdate();
    GetPlayerName(playerid, pname, 24);
    format(str, 30, "%s %d",pname,ccurdate);
    gstats=fopen(FILE_NAME, io_append);
    fwrite(gstats, str);
    fclose(gstats);
    return 1;
}
Reply


Messages In This Thread
[HELP] Server crash on linux - by telmo_ferreira - 16.11.2011, 22:37
Re: [HELP] Server crash on linux - by Calgon - 17.11.2011, 03:13
Re: [HELP] Server crash on linux - by MP2 - 17.11.2011, 07:02
Re: [HELP] Server crash on linux - by telmo_ferreira - 17.11.2011, 12:45
Re: [HELP] Server crash on linux - by telmo_ferreira - 17.11.2011, 14:19
Re: [HELP] Server crash on linux - by teste - 06.12.2011, 18:38

Forum Jump:


Users browsing this thread: 2 Guest(s)