INVALID_TEXT_DRAW problem
#4

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.

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
Reply


Messages In This Thread
INVALID_TEXT_DRAW problem - by ajwar - 16.06.2013, 19:11
Re: INVALID_TEXT_DRAW problem - by Jefff - 16.06.2013, 20:16
Re: INVALID_TEXT_DRAW problem - by ajwar - 16.06.2013, 22:33
Re: INVALID_TEXT_DRAW problem - by Pottus - 16.06.2013, 22:43

Forum Jump:


Users browsing this thread: 1 Guest(s)