01.05.2010, 12:32
You missed a brace
pawn Код:
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;
}