How to get the count of players?
#4

I'm using DIALOG_STYLE_LIST, so when I did this:

pawn Код:
if(response) // If they clicked 'Select' or double-clicked a weap
                {
                            switch(listitem)
                            {
                                foreach(new i: Player)
                                {
                                    case 0: 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", "");
These errors I get:

pawn Код:
GM.pwn(1410) : error 002: only a single statement (or expression) can follow each "case"
GM.pwn(1410) : error 029: invalid expression, assumed zero
How could I make that code in a single statement to follow "case"? Is that even possible?
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)