10.07.2015, 06:13
Stop looping the file... it already does that in the 'removeline' function...
If that doesn't work, then I dunno what to say...
pawn Код:
if(GetPVarInt(playerid, "Denied") == 1 && PlayerInfo[playerid][pPosted] == 1)
{
new pname[MAX_PLAYER_NAME], string[35];
GetPlayerName(playerid, pname, sizeof(pname)); // The name of the player
fremoveline("passed.ini", pname);
format(string, sizeof(string), "users/%s.ini", pname);
DOF2_RemoveFile(string);
KickEx(playerid);
}