What does Return; do?
#1

Hi,
In the Rivershell is there a piece of code with return;..
Does anyone know what this means? I thought you always have to return something?
Reply
#2

It's not always required to return a value. That's really only needed in a callback or when you return with a function call e.g.

Код:
return doSomething(var);
You'd also have to return a value, usually being it 1 or 0; it doesn't matter if the function has no specific return value needed, though.
Reply
#3

http://forum.sa-mp.com/index.php?top...1257#msg841257
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)