Code
error
Help Plzz
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
}
Code:
error 035: argument type mismatch (argument 2)