Tiny Error
#8

I meant that you need to create the FPSList string within the command.

Delete new FPSList from the top of your script and use the example below.

PS: Change the cell size to whatever suits your server.

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/fpslist", cmdtext, true, 10) == 0)
    {
        new FPSList[128];
        for(new i = 0; i < MAX_PLAYERS; ++i)
        {
            if(IsPlayerConnected(i) && !IsPlayerNPC(i))
            {
                format(FPSList, sizeof(FPSList), "%s%s:    %d\n", FPSList, pName(i), FPS2[i]-1);
                ShowPlayerDialog(playerid, DIALOG_FPS_LIST, DIALOG_STYLE_MSGBOX, "Players FPS", FPSList, "Ok", "");
            }
        }
        return 1;
    }
    return 0;
}
Reply


Messages In This Thread
Tiny Error - by ToPhrESH - 18.10.2011, 02:32
Re: Tiny Error - by Ensconce - 18.10.2011, 04:54
Re: Tiny Error - by ToPhrESH - 18.10.2011, 05:37
Re: Tiny Error - by nilanjay - 18.10.2011, 05:42
Re: Tiny Error - by ToPhrESH - 18.10.2011, 05:46
Re: Tiny Error - by nilanjay - 18.10.2011, 05:53
Re: Tiny Error - by ToPhrESH - 18.10.2011, 06:04
Re: Tiny Error - by Ensconce - 18.10.2011, 06:13
Re: Tiny Error - by ToPhrESH - 18.10.2011, 16:23

Forum Jump:


Users browsing this thread: 3 Guest(s)