SA-MP Forums Archive
[Ajuda] Textdraw estъpido - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Textdraw estъpido (/showthread.php?tid=476504)



Textdraw estъpido - iTzDemon - 18.11.2013

bem eu fiz uns menu de status para os players mas o unico problema й que o textdraw do k/d ratio estб a bater mal e nao funciona direito. eu testei em sendclientmessage e deu direito mas no textdraw nao.

Estб ai o code

pawn Код:
new Float:kd;
    kd = float(PlayerInfo[playerid][Kills])/float(PlayerInfo[playerid][Deaths]);
    format(string,sizeof(string),"K/D: ~w~%0.2f",kd);
    TextDrawSetString(STKD[playerid],string);



Re: Textdraw estъpido - focaximubh - 18.11.2013

pawn Код:
new kd;
kd = PlayerInfo[playerid][Kills] && PlayerInfo[playerid][Deaths]);
format(string,sizeof(string),"K/D: ~w~%0.2f",kd);
TextDrawSetString(STKD[playerid], string);
Testei nгo foi sу uma suposiзгo '-'