12.10.2010, 01:40
Miren, pues tengo esto:
Ok el problema es cuando, por ejemplo, si ahi 5 personas en el server, i uso /AllFPS, nomas me ensena 1 persona en el dialog. i quiero q me de todas las personas con sus FPS.
El problema tambien con /laggers.
Gracias!
pawn Код:
CMD:allfps(playerid, params[])
{
SendClientMessage(playerid, COLOR_YELLOW, "* You are currently viewing everyone's FPS info..");
foreach(Player, i)
{
i++;
new pFPS = GetPlayerFPS(i);
format(u_Msg, sizeof(u_Msg), "Player Name:\t\t\tFPS:\n\n%s(%d)\t\t\t%d", pName(i), i, pFPS);
ShowPlayerDialog(playerid, ALLFPS_BOX, DIALOG_STYLE_MSGBOX, "All Player's FPS:", u_Msg, "Refresh", "Close");
}
return 1;
}
CMD:laggers(playerid, params[])
{
new Laggers = 0;
foreach(Player, i)
{
if(GetPlayerFPS(i) <= 20)
{
Laggers++;
format(u_Msg, sizeof(u_Msg), "Player Name:\t\t\tFPS:\n\n%s(%d)\t\t\t%d", pName(i), i, GetPlayerFPS(i));
ShowPlayerDialog(playerid, LAGGERS_BOX, DIALOG_STYLE_MSGBOX, "List of laggers:", u_Msg, "Refresh", "Close");
}
}
if(Laggers == 0)
SendClientMessage(playerid, COLOR_RED, "* There are currently no laggers online!");
return 1;
}
El problema tambien con /laggers.
Gracias!