20.03.2013, 14:24
Hi, I'm making a function to simplify a little the code. But the function needs to send a value from an enum.
I'll explain with examples:
How could I do that?
Thanks you in advance.
Greetings.
I'll explain with examples:
pawn Код:
enum MyEnum
{
value1,
value2,
value3
}
stock MyFunction(playerid, value)
{
if (value == value1)
SendClientMessage(playerid, 0xFFFFFFFF, "It works!");
}
MyFunction(playerid, value1); // Will give error 091: ambiguous constant; tag override is required (symbol "value1")
Thanks you in advance.
Greetings.