Results 1 to 5 of 5

Thread: K/D Ratio

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Private
    Join Date
    Feb 2018
    Posts
    28
    Thanks
    12
    Thanked 17 Times in 16 Posts

    K/D Ratio



    Is it possible to delete the last 4 numbers?

    To display only 0.30....
    I tried this way https://killtube.org/showthread.php?...ight=getSubStr
    but it does not work

    Code:
    if(self.pers["die"] == 0)
    				self.kdratio = self.pers["kills"] / 1;
    			else if(self.pers["die"] == 1)
    				self.kdratio = self.pers["kills"] / 1.5;
    			else
    				self.kdratio = self.pers["kills"] / self.pers["die"];
    			
    			self.kdratiohud setValue(self.kdratio);
    Last edited by buLLeT_; 11th June 2018 at 11:20.

  2. The Following User Says Thank You to buLLeT_ For This Useful Post:

    kung foo man (11th June 2018)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •