fps command error :l - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: fps command error :l (
/showthread.php?tid=276996)
fps command error :l -
sasuga - 16.08.2011
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:
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;
}
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
Re: fps command error :l -
Mozz - 16.08.2011
i've already helped you fix this