16.06.2013, 22:43
You can't set values in an enum then initialize a variable with that enum and expect it to have the specified values.
Try this.
Result: Test1: 0 Test2: 0 Test3: 0
Try this.
pawn Код:
#include <a_samp>
enum TestEnum {
Test1 = 1,
Test2 = 2,
Test3 = 3
}
new TestVar[TestEnum];
public OnFilterScriptInit()
{
printf("Test1: %i Test2: %i Test3: %i", TestVar[Test1], TestVar[Test2], TestVar[Test3]);
}
Result: Test1: 0 Test2: 0 Test3: 0