I have intresting question about y_groups.
#7

You can use y_groups and foreach together natively, it says that in the y_groups release topic.

Quote:

YSI groups are foreach compatible - just specify which group you would like to loop through the players of:

pawn Код:
new Group:a = Group_Create("group");

Group_SetPlayer(a, 5, true);
Group_SetPlayer(a, 7, true);
Group_SetPlayer(a, 89, true);
Group_SetPlayer(a, 50, true);

foreach (Group(a), playerid)
{
    printf("%d", playerid);
}
Quote:

That code will give an output of:

Код:
5
7
50
89
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)