PHP Code:
#include <amxmodx>
new gTest;
public plugin_init()
{
MyFunction();
}
MyFunction()
{
if(gTest)
{
new Player = 0;
enum TestEnum {iTest, szTest[20]};
new Buffer[TestEnum];
}
else
{
new Player = 1;
}
}
Error when compiling: "error 021: symbol already defined: "Player"".
When I remove the enum or make it global it compiles.