First of all, never use goto's, they make your code unreadable and unefficiently.
About your variable question. Gosubs can access variables that are not global. Example:
x = 1
gosub add
print x
suspend for key
end
add:
x = x + 1
return
Output:
2
Functions use their own variables (unless they are global). Example
x = 1
add()
print x
suspend for key
end
function add()
x = x + 1
endfunction
Output:
1
Returning a value when using a function is easy
x = 1
x = add(x)
print x
suspend for key
end
function add(number)
number = number + 1
endfunction number
Output:
2
About the mess, you can't do anything about it, you could try making it shorter by deleting unnecessary commands or putting the code in an external file (and linking it using the include command)
Quote: "
UPDATED
Amd 2800+
1024mb pc3200
A7N8X - Deluxe
Ati Radeon 9800PRO 256mb"