21.06.2018, 13:59
(
Последний раз редактировалось IdonTmiss; 21.06.2018 в 15:10.
)
Well I am having some problems with this function, so yeah instead of showing 0 deaths it says this is my code under onplayerspawn, I create them under OnPlayerConnect, don't worry i have news for kls, dts, etc
Код:
format(kls, sizeof(kls), "%i", p_data[playerid][pKills]); PlayerTextDrawSetString(playerid, MiniStats[0][playerid], kls); format(dts, sizeof(dts), "%i", p_data[playerid][pDeaths]); PlayerTextDrawSetString(playerid, MiniStats[1][playerid], dts); kdrstrr = floatdiv(p_data[playerid][pKills], p_data[playerid][pDeaths]); format(kdrstr, sizeof(kdrstr), "%.2f", kdrstrr); PlayerTextDrawSetString(playerid, MiniStats[playerid][2], kdrstr); format(spri, sizeof(spri), "%i", Spree[playerid]); PlayerTextDrawSetString(playerid, MiniStats[3][playerid], spri); for(new b = 0; b < 5; b++) { PlayerTextDrawShow(playerid, MiniStats[playerid][b]); }