Line removing problem
#4

Stop looping the file... it already does that in the 'removeline' function...

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);
}
If that doesn't work, then I dunno what to say...
Reply


Messages In This Thread
Line removing problem - by maximthepain - 09.07.2015, 11:34
Re: Line removing problem - by Threshold - 09.07.2015, 12:13
Re: Line removing problem - by maximthepain - 09.07.2015, 18:42
Re: Line removing problem - by Threshold - 10.07.2015, 06:13
Re: Line removing problem - by maximthepain - 11.07.2015, 09:40
Re: Line removing problem - by Threshold - 11.07.2015, 10:59
Re: Line removing problem - by maximthepain - 11.07.2015, 12:39

Forum Jump:


Users browsing this thread: 2 Guest(s)