#Mathematical formula with variables
1 messages · Page 1 of 1 (latest)
Why? We can't write here if you want to help solve my problem?
I need other help please
Would you be able to help me with something small please @slate basalt ?
I would love to help but I’m not understand the question/problem
Could you please help me?
The formula must be written in such a way that the script calculates it correctly.
{_zr} = (100*(({_pw1} - {_pw2})/({_pw1}+{_pw2})))+100
The variables are set higher up in the script.
Help you how
check ur priv dms
What is your problem? This post is about my math problem, I'm sure there are many other people who know you better and could help you.
I don’t understand the problem still, does it need a new formula?
Chill lmao
I get a NaN value at the end, and when I try to set {_zr} to {_pw1}+{_pw2} I get a result of 0, when I do set {_zr} to {_pw1}+1 I get a 1. It's like the script has a problem with calculations on variables
you’re dividing by 0
Where divide by 0? There are only positive values
here you say pw1 + pw2 = 0 and in the equation you divide by pw1 + pw2
pw1+pw2 o just a test that shows there is a problem with adding set variables. Actual values pw1=500 pw2=60000
oh so your problem is that your placeholders aren’t getting the right values?
sorry I am not smart
The values themselves are well set and correctly displayed in the chat.
send "&a&lPW1: %{_pw1}%" to player send "&c&lPW2: %{_pw2}%" to player
The problem is with their mathematical use.
Oh are your placeholders parsed as numbers