How to get the count of players?
#7

I did that:
pawn Код:
switch(listitem)
                            {
                                    case 0: foreach(new i: Player), if(PlayerInfo[i][pGang] = 2000), format(string, sizeof(string), "%s (%d)", PlayerName(i), i), ShowPlayerDialog(playerid, DIALOG_GROVES, DIALOG_STYLE_LIST, "Gang: Grove Street Families", string1, "Close", "");
                                    case 1: foreach(new i: Player), if(PlayerInfo[i][pGang] = 2001), format(string, sizeof(string), "%s (%d)", PlayerName(i), i), ShowPlayerDialog(playerid, DIALOG_BALLAS, DIALOG_STYLE_LIST, "Gang: Ballas", string1, "Close", "");
And I got these errors
pawn Код:
GM.pwn(1410) : error 001: expected token: ";", but found "if"
GM.pwn(1410) : error 017: undefined symbol "i"
Reply


Messages In This Thread
How to get the count of players? - by Axey187 - 08.01.2015, 00:58
Re: How to get the count of players? - by SickAttack - 08.01.2015, 01:15
Re: How to get the count of players? - by Axey187 - 08.01.2015, 01:19
Re: How to get the count of players? - by Axey187 - 08.01.2015, 13:32
Re: How to get the count of players? - by danish007 - 08.01.2015, 13:41
Re: How to get the count of players? - by Axey187 - 08.01.2015, 13:50
Re: How to get the count of players? - by Axey187 - 08.01.2015, 13:52
Re: How to get the count of players? - by Sawalha - 08.01.2015, 13:54
Re: How to get the count of players? - by danish007 - 08.01.2015, 13:54
Re: How to get the count of players? - by Axey187 - 08.01.2015, 14:14

Forum Jump:


Users browsing this thread: 2 Guest(s)