[HELP]Command [INI][REP]
#3

Try this maybe will work ..
pawn Код:
CMD:sban(playerid, params[])
{
new fstring[250];
new log[110];
new ban[200];

if(sscanf(params,"i",ban))
{
SendClientMessage(playerid, RED,"USAGE: /sban [IP]");
}
format(log, sizeof(log),"AVC/Logs/BanLog.txt");
if(!fexist(log))
return SendClientMessageEx(playerid, RED,"BanLogs.txt doesn't exist in the AVC folder!");
INI_Open(log);
INI_StripLine(ban);
INI_Close();
format(fstring, sizeof(fstring),"%s",ban);
SendClientMessage(playerid, RED,fstring);
return 1;
}
Reply


Messages In This Thread
[HELP]Command [INI][REP] - by Jarnu - 30.08.2012, 09:04
Re: [HELP]Command [INI][REP] - by rohancoolking - 30.08.2012, 09:09
Re: [HELP]Command [INI][REP] - by XtremeR - 30.08.2012, 12:04

Forum Jump:


Users browsing this thread: 1 Guest(s)