Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Search Ban With Dini

$
0
0
Code
Code:

CMD:sban(playerid,params[])
{
      new playerb[32], string[128], file[32];
      if(sscanf(params, "s[32]s[128]", playerb, params)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /offlineban [playername] [reason]");
      format(file, sizeof(file), "ladmin/users/%s.sav", playerb);
        if(!dini_Exists(file)) return SendClientMessage(playerid, COLOR_RED, "Player name not found.");
        format(string, sizeof(string), "AdmCmd: %s is been banned", playerb);
        SendClientMessageToAll(COLOR_RED, string);
        if(!strcmp(dini_Get(file,"banned"),true)) {
        Kick(playerid);
        }
 return 1; //Sweet
}

error
Code:

error 035: argument type mismatch (argument 2)
Help Plzz

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>