sscanf error: System not initialised.
#5

Sscanf error could be related on not re-compiled filterscripts to your gamemode sscanf version, so the sscanf version does not match; about the commands params bug (usage) it's related to sscanf, as it can't be loaded and params can't be declaired.
The command permission bug is related too on a 'return' issue.

Kick cmd fixed on permissions:

Code:
COMMAND:kick(playerid,params[])
{
    if(pInfo[playerid][Adminlevel] >= 2)
    {
        new id;
        new reason;
        if(sscanf(params,"u",id,reason)) return SendClientMessage(playerid,COLOR_RED,"USAGE: /kick [playerid] [reason]");
        if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, "This id isnt online!");
        if(pInfo[playerid][Adminlevel] < pInfo[id][Adminlevel]) return SendClientMessage(playerid,COLOR_RED,"You can't kick a higher admin level than you");
        Kick(id);
        SendClientMessage(playerid, 0x33AA33AA, "[ADMIN] You have succesfully kicked the player!");
    } else return SendClientMessage(playerid, COLOR_RED, "You must be atleast admin level 2 in order to use this command !");
    return 1;
}
Try to fix your sscanf bug, by downloading the latest include and plugin version, and recompiling gamemode + all filterscripts.

+REP If i helped you.

Regards,
Rodri.
Reply


Messages In This Thread
sscanf error: System not initialised. - by TheBoZ - 05.03.2016, 08:53
Re: sscanf error: System not initialised. - by xEF - 05.03.2016, 08:54
Re: sscanf error: System not initialised. - by TheBoZ - 05.03.2016, 09:03
Re: sscanf error: System not initialised. - by xEF - 05.03.2016, 09:09
Re: sscanf error: System not initialised. - by xEF - 05.03.2016, 09:12
Re: sscanf error: System not initialised. - by TheBoZ - 05.03.2016, 09:13
Re: sscanf error: System not initialised. - by xEF - 05.03.2016, 09:14
Re: sscanf error: System not initialised. - by TheBoZ - 05.03.2016, 09:26
Re: sscanf error: System not initialised. - by ZToPMaN - 05.03.2016, 09:50

Forum Jump:


Users browsing this thread: 1 Guest(s)