01.05.2010, 12:29
hi, i have a problem:
when i use the cmd, it doesnt delete the line
Код:
dcmd_delcp(playerid, params[]) { #pragma unused params if(!gRacerInfo[playerid][isracebuild]) return SendClientMessage(playerid, COLOR_RED1, "Du erstellst gerade kein Rennen!"); else { new string[100]; DisablePlayerRaceCheckpoint(playerid); buildcps--; new File:race=fopen(CheckpointFile, io_read); while(fread(race, string)) { if(!strcmp(string, racestring, true, strlen(racestring))) { fclose(race); fdeleteline(CheckpointFile, string); SendClientMessage(playerid, COLOR_RED1, "Checkpoint gelцscht!"); } } } return 1; }