11.07.2010, 03:25
Is this a bug or im using it wrong?
Please help, thanks.
pawn Код:
cmd(delete, playerid, params[])
{
new string[128];
if(IsPlayerConnected(playerid) && PlayerLoggedIn[playerid])
{
new name[32];
if(sscanf(params, "s",name))
{
SendClientMessage(playerid, COLOR_HELP, "USAGE: /delete [file]");
return 1;
}
format(string, sizeof(string), "Accounts/%s.ini",name);
fremove(string);
}
return 1;
}