Returning Float in function
#7

Quote:
Originally Posted by Sanady
Посмотреть сообщение
But why should I do that? I am planing using that function only two times...
You have to do that if you want the function to return a float...

If you want the function to assign the value to a variable/array passed by reference, then add "&" without the double quotes to the variable/array passed by reference in the function's arguments.

The function will then be used the same way as GetPlayerHealth, for example.

About the reparse error/warning, only do it if you get the error...
Reply


Messages In This Thread
Returning Float in function - by Sanady - 16.10.2016, 18:07
Re: Returning Float in function - by Banana_Ghost - 16.10.2016, 18:09
Re: Returning Float in function - by Sanady - 16.10.2016, 18:12
Re: Returning Float in function - by SickAttack - 16.10.2016, 18:12
Re: Returning Float in function - by Banana_Ghost - 16.10.2016, 18:13
Re: Returning Float in function - by Sanady - 16.10.2016, 18:15
Re: Returning Float in function - by SickAttack - 16.10.2016, 18:17
Re: Returning Float in function - by Banana_Ghost - 16.10.2016, 18:17
Re: Returning Float in function - by Sanady - 16.10.2016, 18:25
Re: Returning Float in function - by Sanady - 16.10.2016, 18:33

Forum Jump:


Users browsing this thread: 1 Guest(s)