/help command
#1

Hello, i want to make a /help command like this, but with ZCMD. what do i have to change? It says undefined symbol cmdtext...

PHP Code:
new x_nr[256];
             
x_nr strtok(cmdtextidx);
            if(!
strlen(x_nr))
             {
                 
SendClientMessage(playeridRED"Help Menu: |/help [name]|");
                  
SendClientMessage(playeridRED"Name: Weapons");
             
                return 
1;
             }
             if(
strcmp(x_nr,"weapons",true) == 0)
            {
            } 
Thanks
Reply
#2

example
pawn Code:
CMD:help(playerid, params[])
{
     new x_nr[256];
     if(sscanf(params, "s[256]",x_nr))
     {
          SendClientMessage(playerid, RED, "Help Menu: |/help [name]|");
          SendClientMessage(playerid, RED, "Name: Weapons");
          return 1;
     }
     if(strcmp(x_nr,"weapons",true) == 0)
     {
        // you code here
     }
     return 1;
 }
Reply
#3

Thanks !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)