Hi, i have this code:
PHP Code:
return _:info < 4 ? ReadPackCell(DataPack:pack) : ReadPackFloat(DataPack:pack); //line 141
And error
PHP Code:
Warning: Expression with tag override must appear between parentheses on line 141AMX Mod X Compiler 1.8.3-dev+5097
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2013 AMX Mod X Team
Warning: Expression with tag override must appear between parentheses on line 141
Error: Expected token: ",", but found ":" on line 141
Error: Invalid expression, assumed zero on line 141
Error: Invalid expression, assumed zero on line 141
Error: Too many error messages on one line on line 141
But when i change to
PHP Code:
return _:info < 4 ? ReadPackCell((DataPack:pack)) : ReadPackFloat((DataPack:pack));
( '(' and ')' in ReadPackCell & ReadPackFloat )
PHP Code:
AMX Mod X Compiler 1.8.3-dev+5097
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2013 AMX Mod X Team
Header size: 1012 bytes
Code size: 11292 bytes
Data size: 10452 bytes
Stack/heap size: 16384 bytes
Total requirements: 39140 bytes
Done.
So, why "(" are neccesarry in case?
I think compilator thinks that first ":" is a separator between second expression.
why?