C
C#7mo ago
js

✅ wont let me call my method

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