Question by
Code1345 · Aug 08, 2017 at 08:38 PM ·
staticc# to javascript
Unexpected Symbol 'int'
Hello, My current issue is that I get the follow message- "Unexpected symbol 'int', expecting 'class', 'delegate', 'enum', 'interface', 'partial', or 'struct'" I am using this script so I will be able to have an ammo count on my weapon. But, I get the following message. I've struggled with this for hours now, and I can't figure it out. My script is down below. Any help is very much appreciated!
screen-shot-2017-08-08-at-43143-pm.png
(77.3 kB)
Comment
Best Answer
Answer by RealAso · Aug 08, 2017 at 10:18 PM
The Variables are not defined there, It should be defined under the GlobalAmmo Class, most cleanly (the way I do it) is above the Start function.
Your answer
![](https://koobas.hobune.stream/wayback/20220612132301im_/https://answers.unity.com/themes/thub/images/avi.jpg)