stock boolean
#1

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?
Reply
#2

UP TOPIC
Reply
#3

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
Reply
#4

Yes, but talking about just return true and return 1 i can use return true in stock function?
Reply
#5

Return [-infinite, -1] ; [1, +infinite] = true
Return 0 = false
Boolean make the function return true or false, nothing else
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)