09.04.2014, 20:01
Hey, i need to get a float value and change it to integer.
What should i use? strval, strmid etc... https://sampwiki.blast.hk/wiki/Strval
I need to get distance of player from a point and then it divide the distance by 5 and multiplier it by 4.
Float var:
I'm getting from this line tag mismatch because it a float and not an integer.
+REP.
What should i use? strval, strmid etc... https://sampwiki.blast.hk/wiki/Strval
I need to get distance of player from a point and then it divide the distance by 5 and multiplier it by 4.
Float var:
Код:
new Float: vDistance = GetVehicleDistanceFromPoint(vehicleid, HouseInfo[rand][hExteriorX], HouseInfo[rand][hExteriorY], HouseInfo[rand][hExteriorZ]);
Код:
MoneyDistance[playerid] = ((vDistance/5) * 4);