14.12.2012, 14:29
Hey,
I'm trying to create a MDC system for the PD (Roleplay Sever), well the problem is when I want to see the criminal record, it doesn't read all the records, I think the problem is that it doesn't save right the string, look at that:
and how it looks into the file:
I'm trying to create a MDC system for the PD (Roleplay Sever), well the problem is when I want to see the criminal record, it doesn't read all the records, I think the problem is that it doesn't save right the string, look at that:
Код:
new playername[24]; if(!strlen(inputtext)) return SendClientMessage(playerid,0xFF000000,"[ERROR]: You should to type a criminial record."); GetPlayerName(MDCTarget[playerid],playername,24); format(string, sizeof(string), "CRecords/%s.cfg", playername); new File:filee = fopen(string, io_append); new stringg[1300]; new Year, Month, Day; getdate(Year, Month, Day); format(stringg, sizeof(stringg), "%s(%d/%d/%d)\n",inputtext, Day, Month,Year); fwrite(filee, stringg); fclose(filee);
Код:
Check1(14/12/2012) Check2(14/12/2012)