16.08.2011, 00:46
hello everyone, i've a problem with a command that i've done using foreach, it compiles and everything but it doesnt show wath i need, this is the command:
it should show in a dialog all player's fps but it only givesme this:
/imageshack/img580/3086/samp070nf.png
i used the fps function of Ryder on his fps filterscript example but it doesn't shows up, but as you can see it works, i used it on the textdraw on the corner, it just doesn't work on the dialog :l
Please someone help me making it work :c
pawn Код:
dcmd_fps(playerid,params[])
{
#pragma unused params
new FPSList[512];
foreach (Player, i)
{
format(FPSList, sizeof(FPSList), "%s%s: %s\n", FPSList, pName2(i), FPS2[i]-1);
ShowPlayerDialog(playerid, DIALOG_FPS_LIST, DIALOG_STYLE_MSGBOX, "Players FPS", FPSList, "Ok", "");
}
return 1;
}
/imageshack/img580/3086/samp070nf.png
i used the fps function of Ryder on his fps filterscript example but it doesn't shows up, but as you can see it works, i used it on the textdraw on the corner, it just doesn't work on the dialog :l
Please someone help me making it work :c