22.12.2014, 11:08
No, it doesn't return floats. Normally you would have to define that function as:
Then you just 'return distance;', but '_:' lets the compiler determine the nature of the variable, whether it's a float or integer etc.
I'm not 100% sure, but I know that it allows you to treat floats as integers technically speaking... I'm probably not wording this right, but hopefully there's someone that can give you a better explanation.
pawn Код:
stock Float:GetDistance(playerid, targetid)
I'm not 100% sure, but I know that it allows you to treat floats as integers technically speaking... I'm probably not wording this right, but hopefully there's someone that can give you a better explanation.