sscanf error: System not initialised.
#6

Quote:
Originally Posted by xEF
View Post
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 cmds bug is related too on 'return' issue.

Kick cmd fixed:

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, downloading the latest include and plugin version, and recompiling gamemode + all filterscripts.

+REP If i helped you.

Regards,
Rodri.
Thanks, i'l try it anyways you've been really helpfull, since im new in SA:MP forums how do i +REP?
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)