Problem
#2

Quote:
Originally Posted by Logitech90
Посмотреть сообщение
a huge quotation
Make a repeating timer (every 1sec (1000ms)) and put it OnPlayerSpawn/Connect callback. Don't forget to destroy it on OnPlayerDisconnect callback!
Put this code in it:
pawn Код:
new newtext[128];
    format(newtext, sizeof(newtext), "Your FPS: %d", GetPlayerFPS(playerid));
    TextDrawSetString(FPSTD[playerid], newtext);
And also (very important):
You got this on your script:
new Text:FPSTD;

but you must change it to
new Text:FPSTD[MAX_PLAYERS];

and use it as FPSTD[playerid] (like in my code above) or else it will show the same string to all the players!
Reply


Messages In This Thread
Problem - by Face9000 - 09.06.2011, 09:26
Re: Problem - by *IsBack - 09.06.2011, 11:50

Forum Jump:


Users browsing this thread: 2 Guest(s)