C
C#8mo ago
js

✅ wont let me call my method

No description
11 Replies
js
jsOP8mo ago
No description
js
jsOP8mo ago
and if i change AddToOrder to static
js
jsOP8mo ago
i get this error
No description
Althos
Althos8mo ago
I'm assuming the class you're calling "AddToOrder" from and "AddToOrder" are different ?
js
jsOP8mo ago
yes
Althos
Althos8mo ago
Your first call cannot work because you need to create an instance of whatever the class that contains "AddToOrder" is called
js
jsOP8mo ago
i already did that in the class im calling addtoorder from
No description
js
jsOP8mo ago
addtoorder is in my Order class
Althos
Althos8mo ago
Try order.AddToOrder with a lowercase "o"
js
jsOP8mo ago
omg 😂 ive got way too much code my head fucking hurts its like a labyrinth thank u
Althos
Althos8mo ago
no problem 🙂
Want results from more Discord servers?
Add your server