return value help
#1

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

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)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)