Why this error?

BCE0051: Operator '*' cannot be used with a left hand side of type 'int' and a right hand side of type 'playerExp'.

I get that it is something with the int. xD
I mean that i cant multiply a int or something please help…

You said it. You can’t multiply an integer by playerExp. What is playerExp?

Hmm, It is my other script. But i got it. when i used GetComponent i wrote “curExp : PLAYEREXP(instaid of int) gameObject.GetComponent(“playerExp”)”
Thanks anyway :smile:

Getcomponent just gets a reference to that component and so it is of type playerExp. So to access the variables in that script, you can just use

GetComponent("playerExp").someVar * 10;