SSCANF Problem, no return specific value
#1

Hi... a have a serious problem with SSCANF. The variable values don't return a specific value... just, the U (ou R) type.

pawn Код:
YCMD:setadmin(playerid, params[], pHELPS)
{
    if(pBools[playerid] & pLogged && pLs[playerid][aLevel] >= 3 || IsPlayerAdmin(playerid))
    {
        new othersid,
            playerLV, LvL[20];

        if(sscanf(params, "ud", othersid, playerLV)) // U ou R for Player's ID, Nicks or NPCs
        {
            SendClientMessage(playerid, -1, "USE: /setadmin [ID/Nick] [0~3]");
            return 1;
        }
        // DEBUG
        SendPlayerMessage(playerid, -1, "othersid: %d / playerLVL: %d", othersid, playerLV);
        // DEBUG
If I type /setadmin 5 3 will return values as /setadmin 0 3 for any value entered in [ID/Nick].


Help me please, and sorry from my bad english
Reply


Messages In This Thread
SSCANF Problem, no return specific value - by SuperChock - 11.12.2011, 20:41
Re: SSCANF Problem, no return specific value - by Speed - 11.12.2011, 20:44
Re: SSCANF Problem, no return specific value - by SuperChock - 11.12.2011, 20:46
Re: SSCANF Problem, no return specific value - by Steven82 - 11.12.2011, 20:47
Re: SSCANF Problem, no return specific value - by SuperChock - 11.12.2011, 20:48
Re: SSCANF Problem, no return specific value - by Steven82 - 11.12.2011, 20:56
Re: SSCANF Problem, no return specific value - by SuperChock - 11.12.2011, 21:19
Re: SSCANF Problem, no return specific value - by Steven82 - 11.12.2011, 21:26
Re: SSCANF Problem, no return specific value - by SuperChock - 11.12.2011, 21:43
Re: SSCANF Problem, no return specific value - by Tigerkiller - 11.12.2011, 22:08
Re: SSCANF Problem, no return specific value - by SuperChock - 11.12.2011, 22:17
Re: SSCANF Problem, no return specific value - by Steven82 - 11.12.2011, 22:32
Re: SSCANF Problem, no return specific value - by SuperChock - 11.12.2011, 22:35
Re: SSCANF Problem, no return specific value - by Steven82 - 11.12.2011, 22:41
Re: SSCANF Problem, no return specific value - by SuperChock - 11.12.2011, 22:55
Re: SSCANF Problem, no return specific value - by iTorran - 11.12.2011, 23:04
Re: SSCANF Problem, no return specific value - by SuperChock - 11.12.2011, 23:19
Re: SSCANF Problem, no return specific value - by iTorran - 11.12.2011, 23:27
Re: SSCANF Problem, no return specific value - by SuperChock - 11.12.2011, 23:29
Re: SSCANF Problem, no return specific value - by Steven82 - 11.12.2011, 23:32

Forum Jump:


Users browsing this thread: 3 Guest(s)