sscanf issue. I guess?
#1

Alright I'm using Vortex 2, using the latest sscanf plugin.. im wondering why when i use the command /check

and I put an id that isnt connected, it outputs the usually Unknown Command type thing, why the hell isnt it
outputting

return SendClientMessage(playerid, COLOR_GREY, "The specified player ID is either not connected or has not authenticated.");


pawn Код:
CMD:check(playerid,params[]) {
    if(playerVariables[playerid][pAdminLevel] >= 1) {

        new
            targetid;

        if(sscanf(params, "u", targetid))
            return SendClientMessage(playerid, COLOR_GREY, SYNTAX_MESSAGE"/check [playerid]");

        if(playerVariables[targetid][pStatus] != 1)
            return SendClientMessage(playerid, COLOR_GREY, "The specified player ID is either not connected or has not authenticated.");

        if(playerVariables[playerid][pAdminLevel] < playerVariables[targetid][pAdminLevel])
            return SendClientMessage(playerid, COLOR_GREY, "You can't check a higher level administrator.");

        showStats(playerid, targetid);
    }
    return 1;
}
and yes

playerVariables[targetid][pStatus]

is being set correctly, its DEFAULT vortex 2 script, i doubt calg0ne would mess that up.
Reply


Messages In This Thread
sscanf issue. I guess? - by PrawkC - 02.10.2011, 00:26
Re: sscanf issue. I guess? - by GrimR - 02.10.2011, 01:18
Re: sscanf issue. I guess? - by PrawkC - 02.10.2011, 01:21
Re: sscanf issue. I guess? - by GrimR - 02.10.2011, 01:43
Re: sscanf issue. I guess? - by GrimR - 02.10.2011, 01:46
Re: sscanf issue. I guess? - by PrawkC - 02.10.2011, 01:56
Re: sscanf issue. I guess? - by GrimR - 02.10.2011, 02:16
Re: sscanf issue. I guess? - by GrimR - 02.10.2011, 02:18
Re: sscanf issue. I guess? - by [L3th4l] - 02.10.2011, 02:25
Re: sscanf issue. I guess? - by Toni - 02.10.2011, 02:50

Forum Jump:


Users browsing this thread: 3 Guest(s)