Jump to content
  • 0

Intrebare


Parazit

Question

1 answer to this question

Recommended Posts

Da.YCMD este procesorul de comenzi facut de Y_less (este cel mai rapid procesor de comenzi).Ex:

YCMD:commands(playerid, params[], help) // by Y_less
{
    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;
}
Iar Foreach este un "inlocuitor" pentru bucle.Ex:
for (new i = 0; i != MAX_PLAYERS; ++i) // by Y_less
{
    if (IsPlayerConnected(i))
    {
        printf("Player %d is connected", i);
    }
}
Devine asta:
foreach (new i : Player) // by Y_less
{
    printf("Player %d is connected", i);
}

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.