Remove junk
#4

These files have a .db extension.

pawn Код:
CMD:clearcache(playerid, params[])
{
    fremove("djson-db-cache.0.db");
    fremove("djson-db-cache.1.db");
    fremove("djson-db-cache.2.db");
    fremove("djson-db-cache.3.db");
    fremove("djson-db-cache.4.db");
    fremove("djson-db-cache.5.db");
    fremove("djson-db-cache.6.db");
    SendClientMessageEx(playerid, COLOR_TWRED, "Server: Junk Cleaned!");
    return 1;
}
or...

pawn Код:
CMD:clearcache(playerid, params[])
{
    new temp[20];
    for (new i; i <= 6; i++)
    {
        format(temp, sizeof(temp), "djson-db-cache.%i.db", i);
        fremove(temp);
    }
    SendClientMessageEx(playerid, COLOR_TWRED, "Server: Junk Cleaned!");
    return 1;
}
Reply


Messages In This Thread
Remove junk - by Shazwan - 03.05.2015, 10:19
Re: Remove junk - by Sledgehammer - 03.05.2015, 10:56
Re: Remove junk - by Shazwan - 03.05.2015, 11:05
Re: Remove junk - by kristo - 03.05.2015, 12:00
Re: Remove junk - by Shazwan - 03.05.2015, 12:16

Forum Jump:


Users browsing this thread: 1 Guest(s)