Ratio - 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: Ratio (
/showthread.php?tid=484470)
Ratio -
Configuration - 30.12.2013
Hello...
I have Ratio system but i don't like that ratio so i want to put something new there like
new res =
(kills +1) * 100
example
/ (kills +1) + (Deaths +1) * 100
Ratio sys: Float:Account[playerid][pScore]/Float:Account[playerid][pDeaths]
i don't know if i have explain good but my english is bad..anywais thank you
Re: Ratio -
StaticYey - 30.12.2013
If someone has 5 kills and 3 deaths. Their ratio is 5/3 ~= 1,6. I can't understand what you are trying to do.
Just get the kills divide them by deaths (causion if deaths are 0) and you get the ratio.