View Single Post
Old 08-01-2005, 12:07 PM   #1 (permalink)
slashdot
Registered User
 
Join Date: Dec 2004
Posts: 43
slashdot is on a distinguished road
parse error problem in game.. can't seem to find problem solution.

Ok, I have been creating a simple question and answer RPG game in the last couple days... and I'm at the moment making a random attack, and fight functions. This is file is just a test file, the functions have not been included with the full game, but I seem to have problems with it that I can't figure out. I don't want to move on until I understand my problem, and know how to fix it. Thanx in advance!

http://www.axiomgaming.net/slashdot/george's%20files/randomattack.cpp

It has something to do with the functions.... here is the error output...

anyone@george's:~$ g++ randomattack.cpp -o randomattack
randomattack.cpp: In function `void fight()':
randomattack.cpp:52: error: parse error before `{' token
randomattack.cpp: In function `int main(int, char**)':
randomattack.cpp:81: error: `RndmAtk' undeclared (first use this function)
randomattack.cpp:81: error: (Each undeclared identifier is reported only once
for each function it appears in.)
anyone@george's:~$
slashdot is offline   Reply With Quote