17.11.2011, 12:45
im try only with the actualizardata(playerid) just for testing, and add if(!gstats) { fcreate(FILE_NAME); }
and the linux crashe again.
and the linux crashe again.
Code:
public actualizardata(playerid) { if(PlayerInfo[playerid][pPhousekey] == 255) { return 1; } if(PlayerInfo[playerid][pPhousekey] <11 ) { return 1; } new chave; new str[128]; new File:gstats; new day,month,year; getdate(day,month,year); chave = PlayerInfo[playerid][pPhousekey]; format(str, sizeof(str), "Casa Nє%d",chave); new sstr[128]; format(sstr, sizeof(sstr), "Casa Nє%d Data: %d.%d.%d \r<br>\n",chave,day,month,year); gstats=fopen(FILE_NAME, io_append); if(!gstats) { fcreate(FILE_NAME); } // fdeleteline(FILE_NAME,str); fwrite(gstats, sstr); fclose(gstats); return 1; }