line isnt deleted
#1

hi, i have a problem:

Код:
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;
}
when i use the cmd, it doesnt delete the line
Reply


Messages In This Thread
line isnt deleted - by Cank - 01.05.2010, 12:29
Re: line isnt deleted - by [MWR]Blood - 01.05.2010, 12:32
Re: line isnt deleted - by Cank - 01.05.2010, 12:36
Re: line isnt deleted - by CAR - 01.05.2010, 12:39

Forum Jump:


Users browsing this thread: 1 Guest(s)