Search Ban With Dini
#2

the problem is here

PHP код:
if(sscanf(params"s[32]s[128]"playerbparams))
/* see that params ? u already defining it you have to make new string for reason
like :
new reason[64];
if(sscanf(params, "s[32]s[128]", playerb, reason)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /offlineban [playername] [reason]"); 
and can you explain me what is this ? kicking a player who wanted to ban a banned player ?
PHP код:
if(!strcmp(dini_Get(file,"banned"),true)) {
     
Kick(playerid);
     } 
and also this code wont ban him ! you have to save dini info of players beeing banned after banning him sending a client message wont make that player BANNED !
so you need something like this :
PHP код:
dini_IntSet(file"banned"true); 
and also you are not saving or using reason so why should you do that ?
you can do like this :
PHP код:
format(stringsizeof(string), "AdmCmd: %s is been banned for %s"playerb,reason); 
Reply


Messages In This Thread
Search Ban With Dini - by Speaker - 10.04.2017, 07:08
Re: Search Ban With Dini - by khRamin78 - 10.04.2017, 07:47

Forum Jump:


Users browsing this thread: 1 Guest(s)