2 errors
#1

Код:
C:\Users\Owner\Desktop\Pawno\filterscripts\Test.pwn(4822) : error 017: undefined symbol "foreach"
C:\Users\Owner\Desktop\Pawno\filterscripts\Test.pwn(4824) : error 032: array index out of bounds (variable "pName")
Here are the lines for the unidentified symbol, and tag mismatch:

pawn Код:
for(new i; i < MAX_PLAYERS; i ++)
    {
        if(IsPlayerConnected(i))
        {
            new FPSList[512];
            foreach(i)
            {
                format(FPSList, sizeof(FPSList), "%s:   %i\n", pName[MAX_PLAYER_NAME], GetPlayerFPS(i));
                ShowPlayerDialog(playerid, 55, DIALOG_STYLE_MSGBOX, "Players' FPS", FPSList, "Ok", "");
            }
        }
    }
I want the command when they type /fpslist to display EVERYONE's FPS, not only the person who typed /fpslist. So, how would I do this? I thought the above would make it work but apparently not. :S
Reply


Messages In This Thread
2 errors - by ToPhrESH - 10.08.2011, 05:45
Re: 2 errors - by iJumbo - 10.08.2011, 06:11
Re: 2 errors - by [L3th4l] - 10.08.2011, 06:44
Re: 2 errors - by ToPhrESH - 10.08.2011, 15:36
Re: 2 errors - by Riddick94 - 10.08.2011, 15:40
Re: 2 errors - by ToPhrESH - 10.08.2011, 15:44

Forum Jump:


Users browsing this thread: 1 Guest(s)