Posts: 913
Threads: 70
Joined: Apr 2009
Reputation:
0
Hello, i don't know calculate player kills/deaths ratio with PVar.
Float:GetPVarInt(playerid, "Kills") / Float:GetPVarInt(playerid, "Deaths")
This value is 0
Posts: 2,593
Threads: 34
Joined: Dec 2007
Wiki
https://sampwiki.blast.hk/wiki/File_Functions down
pawn Код:
new Float:ratio=floatdiv(PKills[playerid], PDeaths[playerid]);
format(str, 256, "%d %d %.2f", PKills[playerid], PDeaths[playerid], ratio);
Posts: 2,593
Threads: 34
Joined: Dec 2007
Quote:
Originally Posted by kurta999
This doesn't work. Valu is 0. My Stats is: Kills 198, deaths 200.
|
Shows 0.99