Jun-04-2017, 11:44 AM
If you define a variable in a function, it only exists in that function (this is called scope). To get it out of that function, you need to use a return statement. To get it into another function, you use parameters to the function call. Details on all of this are in the function tutorials linked to in my signature.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures