Hi guys, I'm making a game in C where a dice rolls graphically (WinBGIm). and has a game logic that I have wrote, However when i compile the project it comes up with an error saying "A function definition is not allowed here before '{' token, but everything looks as it should.
I have written a smaller program just to post so its not cheating but the small program compiles fine so it would be useful so instead I'm attatching the whole .c program.
if someone could please create a project and add this code on there system and then show me what I have done wrong that would be much appriciated.
Thanks in advance.
ps I havnt included the jpeg's because the maximum I can upload is five but that shouldnt change anything.