Solved, I used the reserved keyword "enum". x)
I'm doing something wrong in this switch statement and I don't understand what it is.
If I remove this function code compiles as it should.
PHP Code:
public Printer(enum)
{
switch (enum)
{
case PRINT_T1WIN:
client_print(0, print_center, "TEAM ONE WON THE MATCH! ( %d|%d )", g_TeamOneScore, g_TeamTwoScore)
case PRINT_T2WIN:
client_print(0, print_center, "TEAM TWO WON THE MATCH! ( %d|%d )", g_TeamTwoScore, g_TeamOneScore)
case PRINT_DRAW:
client_print(0, print_center, "IT'S A DRAW!")
case PRINT_ROUND:
client_print(0, print_center, "ROUND: %d/6", g_RoundCounter)
}
}
PHP Code:
ERROR [1082]: invalid function or declaration // Function header line.
ERROR [1084]: invalid expression, assumed zero // Switch line