27.08.2014, 04:47
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
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.
PHP код:
YCMD:commands(playerid, params[], help)
{
if (help)
{
SendClientMessage(playerid, 0xFF0000AA, "Lists all the commands a player can use.");
}
else
{
new
count = Command_GetPlayerCommandCount(playerid);
for (new i = 0; i != count; ++i)
{
SendClientMessage(playerid, 0xFF0000AA, Command_GetNext(i, playerid));
}
}
return 1;
}
/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.