44 Replies
m_StickInput is an
object
, per the error message.ty but i still dont know how to fix
Look back at the tutorial code, how did they declare m_StickInput?
i am looking att the code but is the same
Can you share that $code here?
To post C# code type the following:
```cs
// code here
```
Get an example by typing
$codegif
in chat
For longer snippets, use: https://paste.mod.gg/(A screenshot is fine if you’re following a video)
yes

the video
where do i put the screenshot?
Well, seemingly, you just put it here
What's more important than how
m_StickInput
is used in the video, though, is how it is declaredWe’re looking for the declaration. The line outside the method.
In your code it’s something like
object m_Stickinput;
(maybe a private
in there too) we need to see how the tutorial has it.whant me to send a screenshot or video link?
Screenshot. There’s no point in my searching through the video for a specific moment when you’re more likely to know when it is.

For reference, a declaration of something is where that thing is declared
Not where it's used
so my problem is that is private void
m_StickInput
is a private void
method?idk
Well, find out
It's declared, somewhere, with the type
object
That is, according to the error, not the type it should have
Figure out what type the tutorial used
Fix your code to use the same typehe uses privet
"Priviet" is how you say "hello" in Russian
It's not a type
i am swedish and i have dislexia
sorry
private
is a visibility modifier
As is public
or internal
You want to know the typeyeah and i dont understand the error code
public class Person
{
private string _name;
public Person(string name) => _name = name;
// Person has one method, called WriteName.
public void WriteName()
{
System.Console.WriteLine(_name);
}
}
public class Program
{
public static void Main()
{
var p = new Person("PersonName");
// The following call fails because Person does not have
// a method called DisplayName.
p.DisplayName(); // CS1061
}
}
is what microsoft gives me as a examble
Link to the example on the MS site, please, because that snippet has you trying to call a method that does not exist.
I personally think you need to work through the $helloworld examples and the MS C# tutorials because it feels like you do not have a solid understanding of c# basics
Interactive course
https://learn.microsoft.com/en-us/training/browse/?terms=Get%20started%20with%20C%23
https://learn.microsoft.com/en-us/training/paths/get-started-c-sharp-part-1/
Videos
https://dotnet.microsoft.com/learn/videos
https://media.discordapp.net/attachments/569261465463160900/1378429507278737528/image.png
I would go through the above courses before you jump into random YT tutorials, because without understanding the fundamentals you're setting yourself up for a lot of frustration when things don't work
ok
the link to the error code
i can get banned for that right:distilld_look:
Most people here do not memorize compiler error codes FWIW
Banned for what...?
sending links
scams and stuff
As long as you're not sending links to sketchy sites and asking people to download stuff nobody will care. I regularly link to the MS docs
ok good
Dude
We keep repeating
Over and over and over and over and over again
Where the error is
What you have to do to verify it
What you have to do to fix it
The error is clear

m_StickInput
has a type
Some type
I don't know what type
That type does not have the .ReadValue()
method
It does not exist
None
Nada
Zero
Nobody has ever made it and nobody ever will
In none of the multiverses does this method exist
The way to check what's wrong is to see where m_StickInput
is declared
Not where it's used
Not where it's referenced
Not where it got married
Not where it went for a honeymoon
Where it's declared
The code in the tutorial has no such error
No error
at all
Whatsoever
So, the tutorial code has m_StickInput
declared with the correct type
Watch the tutorial
See where m_StickInput
is declared in the tutorial code
Declared
And use the same type for your m_StickInput
Please
I beg of you
Just listen to the advice
Put it in a text-to-speech software so it reads it aloud for you or something
That said, I agree with Ded here
You can barely crawl and you decided to climb the K2
Start from the basics
Like "what is a declaration"sorry but how to check value
At no point has anybody ever mentioned checking a value in this conversation
no dw about it
i did it it is fixt
Sorry if i disturb you but i got a new problem
Sure
i fixed it
LOL