Elakadtam. megvan a(z) fps-nek a td kordinátája hogy rakjam be? mertígy elileg nem adja ki.
Dupla hozzászólás automatikusan összefûzve. ( [time]2016. február 20. 18:30:34[/time] )
így nagyon nem adja!
#include <a_samp>
#define FILTERSCRIPT
#define GetPlayerFPS(%1) g_pFPS[%1]
new
g_pFPS[MAX_PLAYERS],
g_pDrunkLevelLast[MAX_PLAYERS],
string[128],
Text:FPS;
// Text:FPS[MAX_PLAYERS];
public OnPlayerConnect(playerid) {
FPS = TextDrawCreate(240.0, 580.0, \"FPS: Loading\");
TextDrawShowForPlayer(playerid, FPS);
return 1;
}
public OnPlayerUpdate(playerid) {
new drunknew = GetPlayerDrunkLevel(playerid);
if(drunknew < 100) SetPlayerDrunkLevel(playerid, 2000);
else {
if(g_pDrunkLevelLast[playerid] != drunknew) {
new wfps = g_pDrunkLevelLast[playerid] - drunknew;
if(0 <= wfps <= 200) g_pFPS[playerid] = wfps;
g_pDrunkLevelLast[playerid] = drunknew;
}
}
format(string, sizeof(string), \"FPS: %d\", GetPlayerFPS(playerid));
TextDrawSetString(FPS, string);
return 1;
}
public OnGameModeInit()
{
FPS = TextDrawCreate(515.000000, 418.000000, \"FPS_xd\");
TextDrawBackgroundColor(FPS, 255);
TextDrawFont(FPS, 1);
TextDrawLetterSize(FPS, 0.259999, 1.200000);
TextDrawColor(FPS, 0xd6d4d2AA);
TextDrawSetOutline(FPS, 0);
TextDrawSetProportional(FPS, 1);
TextDrawSetShadow(FPS, 1);
return 1;
}