ID:264841
 
Code:
beauty/100


Problem description: So basically, i need to use this in my code, but it keeps erroring. It's supposed to divide beauty by 100, but it doesnt work, im guessing that / is used as a replacement to indenting. it says in the all powerful (no matter how outated) manual thing that you use /, so just wondering if any body knows what I use??
edit: solved (i dont space things, but it worked when i spaced it D:<)

What is the value of beauty? It must not be a number.
mob
var Beauty = 5 // the variable you want to divide
proc
divideBeauty()
var A = Beauty / 5 // beauty cannot be a text string
world << A
In response to DisturbedSixx
its a number!
if its any help: (hopefully)
round(beauty/100,0.01)

i used it in a "round"

im tying to turn it into a percentage
(oh and also, would that turn it into a percentage?)
In response to Nabby-dude
Make sure beauty is truly a number, follow what the other poster said. Also, to turn the decimal into a percent, you'd multiply by 100.
In response to Nabby-dude
Nabby-dude wrote:
(oh and also, would that turn it into a percentage?)

mob
var Experience = 42
var MaxExperience = 1942
proc
calcExperience()
var calc = round(Experience / MaxExperience * 100 / 1)
world << "[calc]%"


It's as simple as that.

Edit: Use it as a reference.
You never said what the error is.
In response to DisturbedSixx
DisturbedSixx wrote:
What is the value of beauty? It must not be a number.

That sounds so unintentionally profound.
In response to Warlord Fred
Exactly (I also approve of [link]).