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

pawn Код:
CMD:help(playerid, params[]) // command /help
{
    new part;
    if(!sscanf(params, "i", part))
    {
        switch(part)
        {
            case 1: // for page 1
            {
                SendClientMessage(playerid, 0xFFFFFFFF, "Page 1");
            }
            case 2: // for page 2
            {
                SendClientMessage(playerid, 0xFFFFFFFF, "Page 2");
            }
            default: // if the page is not valid
            {
                SendClientMessage(playerid, 0xFFFFFFFF, "Invalid Page Number! Valid Ones: 1 , 2");
            }
        }
    }
    else // if player didnt enter any number
    {
        SendClientMessage(playerid, 0xFFFFFFFF, "Usage: /help [page]");
    }
    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)