Posts: 47
Threads: 17
Joined: May 2014
Reputation:
0
can someone show me how return value work? i can't understand how it work on wiki...i saw someone put return 4 in their script...
Posts: 1,498
Threads: 110
Joined: Aug 2013
https://sampwiki.blast.hk/wiki/Control_Structures#return
return 1 = true
return 0 =false
"true" and "false" have a tag of "bool:" which give the compiler hints about where they can be used. 0 and 1 don't (they have the default tag, which is "_:"). (******)
return stops a function and goes back to the point in code which called the function in the first place(WIKI)