Jump to content

Confused by error....


BeggarsBeDamned
 Share

Recommended Posts

In the crash test script, there is this line of code in the main function:

                 bet==bet * betmultiplier;}

 

I have declared a couple of variables above, WINmultiplier and LOSSmultiplier with values.   

  LOSSmultiplier: { label: "betmultiplier", value: 1.2, type: "number" },

  LOSSmultiplier: { label: "betmultiplier", value: 1.2, type: "number" },

 

I have tried many, many ways to set the value of either of these to betmultiplier, I continue to get this error-

ReferenceError: bet is not defined

 

For instance, I have done the following-

   { currentPayout = config.basePayout.value;
                 betmultiplier = LOSSmultiplier;
                 bet==bet * betmultiplier;}
         

   { currentPayout = config.basePayout.value;
                 betmultiplier = LOSSmultiplier.value;
                 bet==bet * betmultiplier;}
         

   { currentPayout = config.basePayout.value;
                 bet==bet * LOSSmultiplier;}
         

 

Any suggestions why this isn''t working ??

Link to comment
Share on other sites

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

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

Register a new account

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...