SA-MP Forums Archive
Problem - 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: Problem (/showthread.php?tid=254678)



Problem - Face9000 - 12.05.2011

Hi all,i have added the FPS counter to the server but i get errors while compiling:

error 001: expected token: ";", but found "-identifier-"
error 017: undefined symbol "GetPlayerFPS"

Complete line:

pawn Код:
new Text:FPS[MAX_PLAYERS];
public OnPlayerUpdate(playerid)
{
    new string[20]
    format(string, sizeof(string), "Your FPS: %d", GetPlayerFPS(playerid));
    TextDrawSetString(FPS[playerid], string);
    return 1;
}
Thanks.


Re: Problem - Retardedwolf - 12.05.2011

Please, firstly do not use OPU for things like that, why do you need your FPS to be so accurate and updated 30 times a second?


Re: Problem - Face9000 - 12.05.2011

Quote:
Originally Posted by Retardedwolf
Посмотреть сообщение
Please, firstly do not use OPU for things like that, why do you need your FPS to be so accurate and updated 30 times a second?
Because i like the perfect things.