#1

Hi, how can i make a script of ratio? i have a kills and deaths textdraw and i want to make another one who shows ratio, cant find on search cuz the stupid motherfucking search is not working fine
Reply
#2

pawn Код:
format(str,sizeof(str),"Ratio: %0.2f",Kills/Deaths);
Reply
#3

Ratio is kills divided by deaths, so this is easy made.

Make the textdraw, update it onplayerdeath with kills/deaths

pawn Код:
new tdstring[5];
new Float:ratio = killsvar/deathsvar;
format( tdstring, sizeof( tdstring ), "%f", ratio );
TextDrawSetString( textdraw, tdstring );
Very fast, and not very professional, but oh well

EDIT: too slow
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)