Posts: 457
Threads: 7
Joined: Jul 2017
Quote:
Originally Posted by Bussyman
Hi,
If i have function
Код:
stock anyfunction()
{
return true;
}
stock anyfunction()
{
return 1;
}
Is there any difference? do i need anyfunction with return true make bool:anyfunction or this is not need?
|
well, with making it bool:anyfunction() it will only return "false" or "true", but without "bool:" the function can return many type of objects/variables
Posts: 159
Threads: 103
Joined: Apr 2017
Reputation:
0
Yes, but talking about just return true and return 1 i can use return true in stock function?
Posts: 1,915
Threads: 64
Joined: Jan 2016
Reputation:
0
Return [-infinite, -1] ; [1, +infinite] = true
Return 0 = false
Boolean make the function return true or false, nothing else