12.04.2019, 18:10
float() should actually do it. How did you use it?
If you use the value inside a calculation, you do not really need to convert it yourself. The compiler will do it for you if you use it like this (for example):
The compiler will convert Logic to Float automatically if the other value (55.0 in this case) is a Float already.
Otherwise use float(PlayerInfo[playerid][Logic]) instead.
If you use the value inside a calculation, you do not really need to convert it yourself. The compiler will do it for you if you use it like this (for example):
Код:
new Float:some_float = PlayerInfo[playerid][Logic] * 55.0;
Otherwise use float(PlayerInfo[playerid][Logic]) instead.