Closed MaxRat08 closed 4 years ago
In the GPC script language (as well as in C/C++) is required labels belong to a statement, therefore a simple semicolon ;
after your label can circumvent the problem you are running in to, since that counts as a statement.
Example:
main {
goto EndOfMain;
//
// script code here
//
EndOfMain:;
}
Will fail to compile returning "GPC error: test.gpc(7): syntax error, unexpected B_E '}'."
Placing any instruction after the label will let the program compile successfully.