Quote:
Originally Posted by souvikdas95
Uhm... Suppose I want to reuse the symbols in that enum in another function but I don't want to use that same enum or redeclaring it as many times as the function is called. So, how do I do that?
Making it global returns compilation errors saying symbol already declared or so...
|
This is the right section for this kind of post.
It's because you're trying to declare something twice. If you would've shown the real code and the real error we would be able to help you. Without that I can only tell you to change the variable names of/in the enum.
Neither of these are ok:
Code:
new Test1
enum Test1 {
Whatever
}
new Test2
enum Whatever2 {
Test2
}
Code:
N:\Nerladdat\! Spel\CS\! Scripting\Rose\test4.sma(4) : error 021: symbol already defined: "Test1"
N:\Nerladdat\! Spel\CS\! Scripting\Rose\test4.sma(11) : error 021: symbol already defined: "Test2"
__________________