Can someone tell me what it is ( _: )
#4

No, it doesn't return floats. Normally you would have to define that function as:
pawn Код:
stock Float:GetDistance(playerid, targetid)
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.
Reply


Messages In This Thread
Can someone tell me what it is ( _: ) - by RaeF - 22.12.2014, 09:17
Re: Can someone tell me what it is ( _: ) - by CalvinC - 22.12.2014, 10:22
Re: Can someone tell me what it is ( _: ) - by Kyance - 22.12.2014, 10:52
Re: Can someone tell me what it is ( _: ) - by Threshold - 22.12.2014, 11:08
Re: Can someone tell me what it is ( _: ) - by Evocator - 22.12.2014, 11:37
Re: Can someone tell me what it is ( _: ) - by Vince - 22.12.2014, 11:38
Re: Can someone tell me what it is ( _: ) - by RaeF - 22.12.2014, 12:07

Forum Jump:


Users browsing this thread: 3 Guest(s)