jrhetf4xb
Member
- Reaction score
- 12
It's driving me nuts... I have this script that keeps throwing me this error ( Unexpected : | ) on this* line:
Even though I have another script that has functions with the same names, I made them all private and the error still keeps popping out.
JASS:
function OnButtonClick()
{
button clickedButton = GetClickedButton();
if (clickedButton == OPTION_ONE)
{
if (IsPlayerInForce(GetLocalPlayer(), bj_FORCE_ALL_PLAYERS))
{
// * the error always appears on the next line, even if I comment it out
DisplayTextToPlayer(GetLocalPlayer(), 0., 0., "|cffffcc00 10 points|r will be needed to win");
}
POINTS_NEEDED = 10;
}
// same goes on...
Even though I have another script that has functions with the same names, I made them all private and the error still keeps popping out.