return diference - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: return diference (
/showthread.php?tid=308110)
return diference -
jaskiller - 02.01.2012
hi I wanna know wath is the diffrence betwen
PHP код:
if( fexist(fname)) return Slot++;
AND
PHP код:
if( fexist(fname)) Slot++;
wath is better
Sorry for bad english;
Re: return diference -
FTLOG - 02.01.2012
If you use 'return' the script will stop at that line of that function, if you don't, the script will continue.
Re: return diference -
Konstantinos - 02.01.2012
When it's return a 'value' or something else(ex: function, etc.) in a command, the command will stop if it reads return.
Re : return diference -
jaskiller - 02.01.2012
Ok thx.