Topic: compilation error help please.
Could correct the error at compile time, I show the code you copy from your forum and error when compiling marking.
This is the code:
if (realcount>=1 && !game->bad)
{
if ( (game_get_type(game)==game_type_ladder ||
game_get_type(game)==game_type_ironman ||
game_get_type(game)==game_type_ironman ||
game_get_type(game)==game_type_oneonone ||
game_get_type(game)==game_type_melee ||
game_get_type(game)==game_type_topvbot) &&
(realcount==2) )
{
t_ladder_id id;
if ( (game_get_type(game)==game_type_ladder ||
game_get_type(game)==game_type_oneonone ||
game_get_type(game)==game_type_melee ||
game_get_type(game)==game_type_topvbot) )
id = ladder_id_normal;
else
id = ladder_id_ironman;
}
This is the error that brand, tell the compiled:
Error 134 error C2143: error de sintaxis : falta ';' delante de 'if' C:\PvPGN\src\bnetd\game.cpp 620
Error 135 error C2143: error de sintaxis : falta ';' delante de '{' C:\PvPGN\src\bnetd\game.cpp 621
Error 136 error C2447: '{' : falta el encabezado de función (¿lista formal de estilo anterior?) C:\PvPGN\src\bnetd\game.cpp 621
Error 137 error C1075: se encontró el final del archivo antes de encontrar el elemento de cierre correspondiente a llave '{' en '\PvPGN\src\bnetd\game.cpp(46)' C:\PvPGN\src\bnetd\game.cpp 2389
was compiled with the svn 1.99
Thanks for your time and help, I hope your answer.