SA-MP Forums Archive
PlayerTextDrawSetString - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: PlayerTextDrawSetString (/showthread.php?tid=655448)



PlayerTextDrawSetString - IdonTmiss - 21.06.2018

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



Re: PlayerTextDrawSetString - IdonTmiss - 21.06.2018

anyone?


Re: PlayerTextDrawSetString - IdonTmiss - 21.06.2018

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


Re: PlayerTextDrawSetString - Ada32 - 21.06.2018

not sure but shouldn't

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

Код:
MiniStats[playerid][0]



Re: PlayerTextDrawSetString - IdonTmiss - 21.06.2018

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

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

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


Re: PlayerTextDrawSetString - IdonTmiss - 21.06.2018

fixed