decimal
#1

how to make decimal and save it in this code?
Code:
PlayerInfo[playerid][pRatio]=PlayerInfo[playerid][pKill]/PlayerInfo[playerid][pDeath];
	format(str,sizeof(str),"~g~Kills:~w~%i-~r~Deaths:~w~%i-~p~Ratio ~g~K~w~/~r~D~w~:%i",PlayerInfo[playerid][pKill],PlayerInfo[playerid][pDeath],PlayerInfo[playerid][pRatio]);
	TextDrawSetString(info2[playerid],str);
Reply
#2

You should define "PlayerInfo[playerid][pRatio]" as float.
Reply
#3

https://sampwiki.blast.hk/wiki/Floatround
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)