hopy
Active Member
- Reaction score
- 64
Hey everyone, me again. I'm currently working on a day/night system for my map, as well as a little clock window to show players the current time.
After about half a day of messing around I think I've got everything to work, except for one error message. The error message in question is a return action in a function. It's supposed to return the current time of day as a string:
The error message I get is on the "General - Return lp_timeOfDay" part, and I have no clue why. Also couldn't find anything about this on the interwebs. The message happens when the editor is trying to compile the map (saving/testing), and gives me the following message:
"Script failed to compile: Error parsing return, possibly missing semicolon at the end of the return: ';' (See Trigger Editor for more details)"
Now, by this message I assumed the solution would be "add a ';' " and tada, it's fixed. However this turned out not to be the case, so I was hoping you guys knew what to do.
Odds are that it's something really simple and stupid again, and that I'll look like an idiot again, but this little error is preventing me from testing the entire thing. Thanks for any help in advance, and hope to get a reply soon.
After about half a day of messing around I think I've got everything to work, except for one error message. The error message in question is a return action in a function. It's supposed to return the current time of day as a string:
Trigger:
- TimeOfDayToString
- Options: Function
- Return Type: String
- Parameters
- Time of Day = 00:00:00 <Time Of Day>
- Grammar Text: Convert Time Of Day to string
- Hint Text: Converts a time of day value to a string.
- Custom Script Code
- Local Variables
- Actions
- General - Return lp_timeOfDay
The error message I get is on the "General - Return lp_timeOfDay" part, and I have no clue why. Also couldn't find anything about this on the interwebs. The message happens when the editor is trying to compile the map (saving/testing), and gives me the following message:
"Script failed to compile: Error parsing return, possibly missing semicolon at the end of the return: ';' (See Trigger Editor for more details)"
Now, by this message I assumed the solution would be "add a ';' " and tada, it's fixed. However this turned out not to be the case, so I was hoping you guys knew what to do.
Odds are that it's something really simple and stupid again, and that I'll look like an idiot again, but this little error is preventing me from testing the entire thing. Thanks for any help in advance, and hope to get a reply soon.