How to get the count of players?
#10

I've done what you said:
pawn Код:
if(response)
{
    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", "");
                }
            }
         }
     }
 }
Once again, I got errors:

pawn Код:
GM.pwn(1449) : error 014: invalid statement; not in switch
GM.pwn(1449) : warning 215: expression has no effect
GM.pwn(1449) : error 001: expected token: ";", but found ":"
GM.pwn(1449) : error 029: invalid expression, assumed zero
Line 1449 is:
pawn Код:
case 4:
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: 1 Guest(s)