Question by
$$anonymous$$ · Jun 01, 2017 at 03:52 PM ·
scripting problemvoidunexpected-symbol
Void cannot be used in this context, unexpected symbol expecting `,', `;',
Hello, today i have been scripting player vitals, like food health drink, i have been doing it by a tutorial by an awesome guy. But i have a problem, i used void in my scripting, then it sayed: Void cannot be used in this context. And another error called: Unexpected symbol expecting ,',
;',
Please help, there are my parts of the script
The first half:
The another half:
snimka.png
(35.4 kB)
snimkaas.png
(11.7 kB)
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612123300im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Unexpected symbol `void' in class, struct, or interface member declaration 1 Answer
"void" error in SceneManager Script 1 Answer
C# | What void do I put in if I want to do something once each click? 2 Answers
How to instantiate (MonoBehaviour) script multiple times and call void? 1 Answer
Entire contents of public void skipped except for one line 1 Answer