11 Replies

and if i change AddToOrder to static
i get this error

I'm assuming the class you're calling "AddToOrder" from and "AddToOrder" are different ?
yes
Your first call cannot work because you need to create an instance of whatever the class that contains "AddToOrder" is called
i already did that in the class im calling addtoorder from

addtoorder is in my Order class
Try order.AddToOrder with a lowercase "o"
omg
😂
ive got way too much code
my head fucking hurts
its like a labyrinth
thank u
no problem 🙂