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
#2

anyone?
Reply
#3

Quote:
Originally Posted by IdonTmiss
Посмотреть сообщение
anyone?
pls?
Reply
#4

not sure but shouldn't

Код:
MiniStats[0][playerid]
be

Код:
MiniStats[playerid][0]
Reply
#5

Quote:
Originally Posted by Ada32
Посмотреть сообщение
not sure but shouldn't

Код:
MiniStats[0][playerid]
be

Код:
MiniStats[playerid][0]
nope i mean works for other tds
Reply
#6

fixed
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)