C
C#3mo 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
Ewan3mo ago
Its kinda big so it might take a bit ;-;
leowest
leowest3mo ago
use $paste
MODiX
MODiX3mo 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
leowest3mo ago
dont post zip dont post the bin folder etc
Ewan
Ewan3mo ago
oh uhh
leowest
leowest3mo ago
its not needed
Ewan
Ewan3mo ago
how come?
leowest
leowest3mo ago
how come what
Ewan
Ewan3mo 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
leowest3mo ago
that file can add multiple tabs so u can add multiple pages discord is ass for embed files
Ewan
Ewan3mo ago
oh alright thanks :3
Angius
Angius3mo ago
Alternatively, make a Github repo and post a link
Ewan
Ewan3mo ago
Omg its not letting me make more tabs on this paste.mod.gg site uhhuh
leowest
leowest3mo ago
u just click the +
Ewan
Ewan3mo ago
it looks like 6 is the max i can do
leowest
leowest3mo ago
ah I see well then github would be more adequate if u need to post that much
Ewan
Ewan3mo ago
omg i need to make a github account
leowest
leowest3mo ago
it would be easier if u just post the essential related to your issue
Ewan
Ewan3mo ago
uhhh actually lemme see if i can post just 4 tabs and see if i can get an answer
Ewan
Ewan3mo ago
BlazeBin - zcdyjiagqpve
A tool for sharing your source code with the world!
Ewan
Ewan3mo 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
Kouhai3mo 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
Ewan3mo ago
ill try this IT WORKED i forgot a . omg thank you!!!! :catlove:
MODiX
MODiX3mo ago
Use the /close command to mark a forum thread as answered
Kouhai
Kouhai3mo ago
:blobthumbsup: