Avoiding specific function from loop
#2

I've only been able to test this in the console:


//This example will show all textdraws, except 12 and 14. You can add as many parameters as you want.
pawn Код:
ShowAnimList(playerid, 12, 14);
pawn Код:
stock ShowAnimList(playerid, ...)
{
    new arg = numargs(), bool:proceed;
    for(new i; i<sizeof(AnimList); i++)
    {
        proceed = true;
        for(new j=1; j<(arg); j++)
        {
            if(getarg(j) == i) proceed = false;
        }
        if(proceed == true) TextDrawShowForPlayer(playerid, AnimList[i]);
    }
    return 1;
}
Reply


Messages In This Thread
Avoiding specific function from loop - by vassilis - 30.01.2015, 22:30
Re: Avoiding specific function from loop - by Schneider - 30.01.2015, 23:00
Re: Avoiding specific function from loop - by Emmet_ - 30.01.2015, 23:02
Re: Avoiding specific function from loop - by SickAttack - 30.01.2015, 23:04

Forum Jump:


Users browsing this thread: 1 Guest(s)