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

No need for cases; use options.

DCMD Example:

PHP код:
dcmd_help(playeridparams[])
{
    new 
option[50];
    if(
sscanf(params,"s"option))
    {
       
SendClientMessage(playerid,c_white,"Account help - /help one");
       
SendClientMessage(playerid,c_white,"Account help - /help two");
       return 
1;
    }
    if(
strcmp(option,"one",true) == 0)
    {
       
SendClientMessage(playerid,c_green,"|________Account Help________|");
       
SendClientMessage(playerid,c_white,"your text");
    }
    if(
strcmp(option,"two",true) == 0)
    {
     
SendClientMessage ... etc 
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: 2 Guest(s)