BeggarsBeDamned Posted August 11, 2022 Share Posted August 11, 2022 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.