C
C#8mo ago
Ewan

✅ AddPizzaMenuItem line 35

Why is the Pizza_Style not working on the AddPizzaMenuItem class on line 35, i want to use the enum values from the recipe class. Help please!
25 Replies
Ewan
EwanOP8mo ago
Its kinda big so it might take a bit ;-;
leowest
leowest8mo ago
use $paste
MODiX
MODiX8mo ago
If your code is too long, you can post to https://paste.mod.gg/ and copy the link into chat for others to see your shared code!
leowest
leowest8mo ago
dont post zip dont post the bin folder etc
Ewan
EwanOP8mo ago
oh uhh
leowest
leowest8mo ago
its not needed
Ewan
EwanOP8mo ago
how come?
leowest
leowest8mo ago
how come what
Ewan
EwanOP8mo ago
how come i cant post my code like i have? cant people just open it and download it for themselves? also my code isnt on one big page, its split into different classes in VS
leowest
leowest8mo ago
that file can add multiple tabs so u can add multiple pages discord is ass for embed files
Ewan
EwanOP8mo ago
oh alright thanks :3
Angius
Angius8mo ago
Alternatively, make a Github repo and post a link
Ewan
EwanOP8mo ago
Omg its not letting me make more tabs on this paste.mod.gg site uhhuh
leowest
leowest8mo ago
u just click the +
Ewan
EwanOP8mo ago
it looks like 6 is the max i can do
leowest
leowest8mo ago
ah I see well then github would be more adequate if u need to post that much
Ewan
EwanOP8mo ago
omg i need to make a github account
leowest
leowest8mo ago
it would be easier if u just post the essential related to your issue
Ewan
EwanOP8mo ago
uhhh actually lemme see if i can post just 4 tabs and see if i can get an answer
Ewan
EwanOP8mo ago
BlazeBin - zcdyjiagqpve
A tool for sharing your source code with the world!
Ewan
EwanOP8mo ago
line 35 on the AddPizzaMenuItem tab the Pizza_Style at the start isnt working and its underlined red and says the type or namespace name Pizza_Style could not be found(are u missing a using directive or assembly reference?) i think this is enough code to show it help please ;-; the Pizza_style enum values are in the Recipe tab i dont get why Recipe.Pizza_Style works in the AddPizzaMenuItem tab but the line 35 one doesnt
Kouhai
Kouhai8mo ago
Pizza_Style style = (Recipe.Pizza_Style)selectedIndex; Needs to be Recipe.Pizza_Style style = (Recipe.Pizza_Style)selectedIndex; Or simply var style = (Recipe.Pizza_Style)selectedIndex;
Ewan
EwanOP8mo ago
ill try this IT WORKED i forgot a . omg thank you!!!! :catlove:
MODiX
MODiX8mo ago
Use the /close command to mark a forum thread as answered
Kouhai
Kouhai8mo ago
:blobthumbsup:
Want results from more Discord servers?
Add your server