[ Solved ] prefix for a function.
Hello everyone, :crab:
I've an other question for today :) So, I see a lot's of code like that : Code:
Code:
Code:
So me, when i do that it do not work a lot's ... When i compil my code they are a terrible warning :cry: Quote:
Thanks all in advance héhé |
Re: prefix for a function.
and whats the data type called 'AwesomeFuction' ?
|
Re: prefix for a function.
The returned value must be with the same tag.
|
Re: prefix for a function.
Quote:
Quote:
|
Re: prefix for a function.
Show your code.
|
Re: prefix for a function.
If you tag a function as a bool, you must return a bool.
|
Re: prefix for a function.
Oh okay.
Here it's work :
Spoiler
And here it's do not work :
Spoiler
Edit: I understand when i return an integer i do bool: fution. a float, it's Float: Fuction. |
Re: prefix for a function.
If you are going to tag a function, use a valid tag and then return a value of that tag. The reason why it does not work is because you are returning an untagged value where you are declaring the function as returning a tagged value
Example: PHP Code:
|
Re: prefix for a function.
Oh! Okay. SO it's not good to use tag like a comment/sentence/text
|
Re: prefix for a function.
Quote:
PHP Code:
|
| All times are GMT -4. The time now is 15:24. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.