i have been following a tutorial on how to make text based games in c++ but have a problem... i have tried to go back several times but cant seem to find the problem, so i thaught you guys could help me :)
here is the error i get when building :)
1>------ Build started: Project: DopeGame2, Configuration: Debug Win32 ------ 1>Compiling... 1>Crossroads.cpp 1>c:\users\liv\documents\visual studio 2008\projects\dopegame2\dopegame2\crossroads.cpp(20) : error C2143: syntax error : missing ')' before ';' 1>c:\users\liv\documents\visual studio 2008\projects\dopegame2\dopegame2\crossroads.cpp(48) : error C2059: syntax error : ')' 1>Build log was saved at "file://c:\Users\Liv\Documents\Visual Studio 2008\Projects\DopeGame2\DopeGame2\Debug\BuildLog.htm" 1>DopeGame2 - 2 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
#include "Library.h"
//CROSSROADS
// GLOBAL VARIABLES
bool glcomplete = false;
bool fcomplete = false;
bool scomplete = false;
bool gcomplete = false;
bool ccomplete = false;
bool Crossroads()
{
int choice = 0;
while (choice != 10)
(
cout << "You stand at a crossroad with several roads going towards all directions.\n\n";
cout << "There is a small town behihnd you full of shops and people.\n\n";
cout << "Which path do you choose?\n";
cout << "1: Town\n";
cout << "2: Summoning Portal\n";
if (!glcomplete)
cout << "3: Grasslands Road (QUEST)\n";
if (glcomplete && !fcomplete)
cout << "4: Forest Road (QUEST)\n";
if (fcomplete && !scomplete)
cout << "5: Swamp Road (QUEST)\n";
if (scomplete && !gcomplete)
cout << "6: Graveyard Road (QUEST)\n";
if (gcomplete && !ccomplete)
cout << "7: Castle Road (QUEST)\n";
cout << "10: Exit Game\n";
cout << ">";
cin >> choice;
)
return true;
}
obviously i dont know how to get "code" tags in this forum so if annyone wants to give me a heads up on that matter too it would be great ;)
thx alot in advance ;)
cheers, Plutonium











