Str split/strcat help with ycmd
#1

I am using ycmd and trying to use the example that ***** gave so when you do /commands it displays all commands and its a cmd you never have to update

PHP код:
YCMD:commands(playeridparams[], help)
{
    if (
help)
    {
        
SendClientMessage(playerid0xFF0000AA"Lists all the commands a player can use.");
    }
    else
    {
        new
            
count Command_GetPlayerCommandCount(playerid);
        for (new 
0!= count; ++i)
        {
            
SendClientMessage(playerid0xFF0000AACommand_GetNext(iplayerid));
        }
    }
    return 
1;

the output of that is

/cmd1
/cmd2
/cmd3
/cmd4
/cmd5

but how could I make it so like 15 commands show up in one line then another 15 in the next and so on instead of all in one line? I know this is possible using strcat but im just not sure exactly how it would be done.
Reply


Messages In This Thread
Str split/strcat help with ycmd - by r3ct - 27.08.2014, 04:47
Re: Str split/strcat help with ycmd - by Dotayuri - 27.08.2014, 05:01
Re: Str split/strcat help with ycmd - by r3ct - 27.08.2014, 06:37

Forum Jump:


Users browsing this thread: 2 Guest(s)