[HELP] Deleting the accounts of everyone online
#2

Quote:
Originally Posted by xxxDunecatxxx
Посмотреть сообщение
foreach(Player, i)
{
GetPlayerName(i, giveplayer, sizeof(giveplayer));
Kick(i);
format(string, sizeof(string), "%s.ini", giveplayer);
fremove(string);
}

I made a command to delete the accounts of everyone online and it doesn't work, can someone tell me why?

thanks
Try that on OnPlayerConnect (without the foreach thingies ;P)?:

pawn Код:
public OnPlayerConnect(playerid)
{
    GetPlayerName(playerid, giveplayer, sizeof(giveplayer));
    format(string, sizeof(string), "%s.ini", giveplayer);
    fremove(string);
    Kick(playerid);
    return 1;
}
I think like that
Reply


Messages In This Thread
[HELP] Deleting the accounts of everyone online - by xxxDunecatxxx - 15.08.2010, 05:49
Re: [HELP] Deleting the accounts of everyone online - by rbN. - 15.08.2010, 05:55
Re: [HELP] Deleting the accounts of everyone online - by xxxDunecatxxx - 15.08.2010, 20:16
Re: [HELP] Deleting the accounts of everyone online - by aNdReSk - 15.08.2010, 20:51
Re: [HELP] Deleting the accounts of everyone online - by xxxDunecatxxx - 20.08.2010, 12:51

Forum Jump:


Users browsing this thread: 1 Guest(s)