I don't want to throw this question but... what's wrong with my script

script purpose is to ascent and auto orbit. all help is welcomed.

ksp 1.1.2 and kos 0.20.0


here's the code: http://pastebin.com/QKS4avuK

here's the error:

__________________________________________

       VERBOSE DESCRIPTION

Number of arguments passed in didn't match the number of DECLARE PARAMETERs.

Called with not enough arguments.

The number of arguments being passed into a function or program call is not correct.

__________________________________________

__________________________________________

At a on 1, line 80

declare parameter alt.



Running declare parameter alt gives fallowing:


         VERBOSE DESCRIPTION

Internal Error.  Contact the kOS developers with the phrase 'impossible FromPrimitiveW

ithAssert(<null>) was attempted'.

Also include the output log if you can.

__________________________________________

__________________________________________

At interpreter history, line 1

declare parameter alt.