Func CurrentKDR() $K1 = GUICtrlRead($Kills) $D1 = GUICtrlRead($Deaths) $C1 = $K1 / $D1 $F1 = StringLeft($C1, 4) If $K1 = 0 Or $D1 = 0 Then GUICtrlSetData($Current, "Try Again..") GUICtrlSetState($Desired, $GUI_DISABLE) GUICtrlSetState($Button2, $GUI_DISABLE) Else GUICtrlSetData($Current, $F1) GUICtrlSetState($Desired, $GUI_ENABLE) GUICtrlSetState($Button2, $GUI_ENABLE) EndIf EndFunc Func DesiredKDR() $K = GUICtrlRead($Kills) $D = GUICtrlRead($Deaths) $E = GUICtrlRead($Desired) $y = $D * $E $x = $K / $E $v = $y - $K $t = $x + $D $m = $v + $K $m2 = $t - $D $stringM2 = StringSplit($m2, ".") $stringM = StringSplit($m, ".") $stringV = StringSplit($v, ".") If GUICtrlRead($Desired) = 0 Then GUICtrlSetData($KillsToGo, "What Do You Want Your KDR To Be?") ElseIf GUICtrlRead($Desired) > 0 Then If $v >= 0 Then GUICtrlSetData($KillsToGo, $stringV[1] & " More Kills") GUICtrlSetData($KillsAfter, $stringM[1]) GUICtrlSetData($DeathsAfter, $D) ElseIf $v < 0 Then GUICtrlSetData($KillsToGo, $stringM2[1] - $D & " More Deaths") GUICtrlSetData($KillsAfter, $K) GUICtrlSetData($DeathsAfter, $stringM2[1]) EndIf ElseIf GUICtrlRead($Desired) < 0 Then GUICtrlSetData($KillsToGo, "Silly Noob.. No Such Thing As Negative KDR") EndIf EndFunc
!