PlayerTextDrawSetString
#1

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]);
	}
Reply


Messages In This Thread
PlayerTextDrawSetString - by IdonTmiss - 21.06.2018, 13:59
Re: PlayerTextDrawSetString - by IdonTmiss - 21.06.2018, 14:30
Re: PlayerTextDrawSetString - by IdonTmiss - 21.06.2018, 15:10
Re: PlayerTextDrawSetString - by Ada32 - 21.06.2018, 15:20
Re: PlayerTextDrawSetString - by IdonTmiss - 21.06.2018, 15:25
Re: PlayerTextDrawSetString - by IdonTmiss - 21.06.2018, 15:36

Forum Jump:


Users browsing this thread: 2 Guest(s)