What use is "quiet"? - sscanf
#2

Quote:
Originally Posted by GranaT3
Посмотреть сообщение
Yes, but the question is what use?
It has a lot of uses, like:
pawn Код:
CMD:command(playerid, cmd[], cmdtext[])
{
    new lookupid;
    sscanf(cmdtext, "?<CELLMIN_ON_MATCHES=1>U(-1)", lookupid);
   
    if(lookupid == -1)
    {
        return 1;
    }
    else if(lookupid == cellmin)
    {
        return 1;
    }
    else if(lookupid == INVALID_PLAYER_ID)
    {
        return 1;
    }
    else
    {
        new amount;
        if(sscanf(cmdtext, "{i}i", amount)) return 1;
    }
    return 1;
}
Reply


Messages In This Thread
What use is "quiet"? - sscanf - by GranaT3 - 01.11.2015, 01:05
Re: Respuesta: Re: What use is "quiet"? - sscanf - by Kevln - 01.11.2015, 01:07
Re: What use is "quiet"? - sscanf - by Kevln - 01.11.2015, 01:19
Re: What use is "quiet"? - sscanf - by [ABK]Antonio - 01.11.2015, 01:27
Respuesta: Re: What use is "quiet"? - sscanf - by GranaT3 - 01.11.2015, 01:39
Respuesta: Re: What use is "quiet"? - sscanf - by GranaT3 - 02.11.2015, 00:03
Re: What use is "quiet"? - sscanf - by Jefff - 02.11.2015, 00:08
Respuesta: Re: What use is "quiet"? - sscanf - by GranaT3 - 02.11.2015, 00:20
Re: What use is "quiet"? - sscanf - by Kevln - 02.11.2015, 00:47
Respuesta: Re: What use is "quiet"? - sscanf - by GranaT3 - 02.11.2015, 00:58

Forum Jump:


Users browsing this thread: 2 Guest(s)