Jump to content
UBot Underground

Eval not working - Cannot Multiply Two Strings?


Recommended Posts

Trying to make a simple thing here, not really working well.

 

I'm trying to multiply two values (each a numerical value entered into the ui html panel)... Via set > eval > Multiply variable1 * variable2

 

It's giving me an error saying "you cannot multiply two strings"

set(#Je_FuelCosts, $eval($multiply(#Je_FuelMileageCost, #Je_CostPerMile)), "Global")

That should work shouldn't it...?

Link to post
Share on other sites

Trying to make a simple thing here, not really working well.

 

I'm trying to multiply two values (each a numerical value entered into the ui html panel)... Via set > eval > Multiply variable1 * variable2

 

It's giving me an error saying "you cannot multiply two strings"

set(#Je_FuelCosts, $eval($multiply(#Je_FuelMileageCost, #Je_CostPerMile)), "Global")

That should work shouldn't it...?

Works for me!

 

http://i.imgur.com/n6WuW3T.png?1

Link to post
Share on other sites

Ok it works now, I had to close the bot and reopen it.... Weird

I get that from time to time. uBot just seems to "loose it". Sometimes when I'm working on memory hungry bots, other times I just can't tell why.

Link to post
Share on other sites

A while back "eval" didn't work if browser has loaded a page that doesn't use JavaScript, but I still see it happens if you close the browser with "close page", if you try to run "eval" after this command.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...