Command like /help 1 /help 2 /help 3?
#8

Here goes mine, just saw now you asked for a example.

pawn Код:
CMD:help(playerid, params[])
{
    new number;
    if(sscanf(params, "i", number)) return SendClientMessage(playerid,-1,"/help 0-3");
    if(0 > number > 3) return SendClientMessage(playerid,-1,"0 - 3");
    if(number == 0)
    {
    // functions
    }
    else if(number == 1)
    {
    // functions
    }
    else if(number == 2)
    {
    // functions
    }
    else if(number == 3)
    {
    // functions
    }
    return 1;
}
Reply


Messages In This Thread
Command like /help 1 /help 2 /help 3? - by Guitar - 21.08.2012, 21:34
Re: Command like /help 1 /help 2 /help 3? - by leonardo1434 - 21.08.2012, 21:39
Re: Command like /help 1 /help 2 /help 3? - by Guitar - 21.08.2012, 21:40
Re: Command like /help 1 /help 2 /help 3? - by ThePhenix - 21.08.2012, 21:43
Re: Command like /help 1 /help 2 /help 3? - by Akira297 - 21.08.2012, 21:45
Re: Command like /help 1 /help 2 /help 3? - by =WoR=G4M3Ov3r - 21.08.2012, 21:47
Re: Command like /help 1 /help 2 /help 3? - by Kirollos - 21.08.2012, 21:59
Re: Command like /help 1 /help 2 /help 3? - by leonardo1434 - 21.08.2012, 22:37
Re: Command like /help 1 /help 2 /help 3? - by Guitar - 21.08.2012, 23:53

Forum Jump:


Users browsing this thread: 1 Guest(s)