Jump to content

Recommended Posts

  • 3 years later...
Posted

Here, after starting, it presents an error error line 1079 end of instruction expected is anyone able to play it?

  • 1 year later...
Posted (edited)

For the people having issues with that error on line 1079, the problem is the dynamically generated code that uses the decimal separator of your locale and then tries to make the VB engine execute it. Basic, like any other programming language, only recognizes numbers in English, so it expects a dot as decimal separator. If your language uses something else, well, it won't work. :D

 

To fix it, open the script and add setlocale(1033) at the top of the scrip, after "ExecuteGlobal". Like this:

 

'*
'*        Stern Pinball (1977) - EM Version
'*        Table scripted by Loserman76
'*        
'*
'*

option explicit
Randomize
ExecuteGlobal GetTextFile("core.vbs")

setlocale(1033) <---- you add this line

....

 

Edited by laralala
Posted
40 minutes ago, laralala said:

For the people having issues with that error on line 1079, the problem is the dynamically generated code that uses the decimal separator of your locale and then tries to make the VB engine execute it. Basic, like any other programming language, only recognizes numbers in English, so it expects a dot as decimal separator. If your language uses something else, well, it won't work. :D

 

To fix it, open the script and add setlocale(1033) at the top of the scrip, after "ExecuteGlobal". Like this:

 

'*
'*        Stern Pinball (1977) - EM Version
'*        Table scripted by Loserman76
'*        
'*
'*

option explicit
Randomize
ExecuteGlobal GetTextFile("core.vbs")

setlocale(1033) <---- you add this line

....

 

I always plug that in after Randomize and parentheses not needed

SetLocale 1033

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...