09.05.2020, 13:22
Quote:
`TotalDMG` should have Float: tag
pawn Code:
|
PHP Code:
new PlayerText:Textdraw0[MAX_PLAYERS];
PHP Code:
stock PlayerTextdrawing(playerid)
{
Textdraw0[playerid] = CreatePlayerTextDraw(playerid, 540.000000, 0.000000, "FPS:000 Ping:000 PL:0.00");
PlayerTextDrawBackgroundColor(playerid, Textdraw0[playerid], 255);
PlayerTextDrawFont(playerid, Textdraw0[playerid], 1);
PlayerTextDrawLetterSize(playerid, Textdraw0[playerid], 0.219999, 1.100000);
PlayerTextDrawColor(playerid, Textdraw0[playerid], -1);
PlayerTextDrawSetOutline(playerid, Textdraw0[playerid], 0);
PlayerTextDrawSetProportional(playerid, Textdraw0[playerid], 1);
PlayerTextDrawSetShadow(playerid, Textdraw0[playerid], 0);
}
PHP Code:
PlayerTextDrawShow(playerid, Textdraw0[playerid]);
PHP Code:
new str[25];
format(str, sizeof(str), "FPS:%d Ping:%d PL:%.2f", GetPlayerFPS(playerid), GetPlayerPing(playerid), NetStats_PacketLossPercent(playerid));
PlayerTextDrawSetString(playerid, Textdraw0[playerid], str);