18.12.2013, 12:40
break is simply the function that terminates a loop. If you want the loop to stop and return a value, you must use 'return'.
break - Stops a loop completely.
return - Stops a loop completely, but the function overall will return the given value.
https://sampwiki.blast.hk/wiki/Control_Structures#break
https://sampwiki.blast.hk/wiki/Control_Structures#return
break - Stops a loop completely.
return - Stops a loop completely, but the function overall will return the given value.
https://sampwiki.blast.hk/wiki/Control_Structures#break
https://sampwiki.blast.hk/wiki/Control_Structures#return