Please!!!!! Need help with script pleaseeeeeee

Iv been following burgzerarcades hack and slash tutorial but i keep getting a parsing error,im a modeller and not a scripter so i dont know much about this,please help here’s the script o yeah i know that the last bit is the same but i dont want to continu untill i find a awnser to this error, THANKS PEOPLE!!!

using UnityEngine;
using System.Collections;

[RequireComponent (typeof(CharacterController))]
public class Movement1 : MonoBehaviour {
public float rotateSpeed = 250;

private Transfrom _mytransform;
private CharacterController _controller;

public void Awake() {
_mytransform = transform;
_controller = GetComponent();

}

// Use this for initialization
void Start () {

}

// Update is called once per frame
void Update () {
if(Mathf.Abs(Input.GetAxis(“Rotate Player”)) > 0) {
Debug.Log("Rotate: " + Input.GetAxis(“Rotate Player”));
_mytransform.Rotate(0,Input.GetAxis(“Rotate Player”) * Time.deltaTime * rotateSpeed, 0);

if(Mathf.Abs(Input.GetAxis(“Rotate Player”)) > 0) {
Debug.Log("Rotate: " + Input.GetAxis(“Rotate Player”));
_mytransform.Rotate(0,Input.GetAxis(“Rotate Player”) * Time.deltaTime * rotateSpeed, 0);

}
}

private Transfrom _mytransform;

You didn’t even take the time to share the error, but that is one obvious mistake.

“Pleaseeeeeeeeeeee!” Use the code tag, share the actual error, and don’t be dramatic. Actually, try to write like you give a damn about your audience, you’re asking for help here.

Why do people have to say that they are a modeller, not a programmer?
Is it like an excuse for when you aren’t too good at programming?

ok sorry,thanks man in the future ill try not to be so dramatic,but iv posted some other questions in the past, like a normal human being only they never got awnsert, sorry for my english its my 2 language but either way thanks

becouse i spend 4 years modeling in 3ds max but iv just started using unity, and its also my first shot in coding etc

Don’t worry about your english, its fine.
Heck its better than most American kids these days lol.

Claiming ESL for writing like a fool is offensive to the many people who are ESL here and write like adults that wish to be taken seriously. Unless you are in fact suggesting that I should think all Spaniards are incapable of acting mature and communicating with respect for their audience, a position I happen to know is untrue as I’ve been to Spain and found plenty of people who aren’t deliberately dramatic.

Usually, if your question didn’t get answered it’s the fault of the poster. The common offenses are: writing like an idiot, asking vague questions, or not bothering to provide information about the problem. People are not going to go out of their way to help people who are making it difficult (or just annoying) to help.

This:

You can’t concatenate a float to a string.

Change it to:

BTW, since you use Input.GetAxis(“Rotate Player”) six times, you should probably just call it once and put it on the stack at the start of your Update();

That should still be ok. + isn’t a straight up concat operation. It creates String objects before doing the concat.

Thanks everyone for the help but its still showing, is this a bug or is there another mistake???

Yes, you can.

–Eric

How about actually pasting the error message with line numbers? Remember what I said about people not giving all of the information they have, but wanting help?

That was the only obvious oddity in his code. If that wasn’t where the error is coming from, then it’s somewhere less obvious.

Why are you calling this twice? Also it looks like your closing curly-braces aren’t enough in number for everything you’re opening. You have six { and 4 }.

if(Mathf.Abs(Input.GetAxis(“Rotate Player”)) > 0) {
Debug.Log("Rotate: " + Input.GetAxis(“Rotate Player”));
_mytransform.Rotate(0,Input.GetAxis(“Rotate Player”) * Time.deltaTime * rotateSpeed, 0);

here its is: Assets/NewBehaviourScript 1.cs(38,1): error CS8025: Parsing error

Oh, oh, figured it out. You were initializing a float with an integer value.

should be:

no, its not it, damn this one is impossible to solve lol

That’s weird. That should’ve fixed it. There’s nothing else that I can find wrong with your code.

Whether you use “public float rotateSpeed = 250;” or “public float rotateSpeed = 250f;” makes zero difference. It’s still a float, with a value of 250. Assigning an integer value to a float doesn’t somehow turn it into an integer.

–Eric