k went to the forum where it says how to fix, i replace the code in
database.cpp where it says to and i just get a bunch of errors...
Code:
--------------------Configuration: Zone - Win32 Release--------------------
Compiling...
database.cpp
C:\eqemu\cvs\eqemu\NewSource\common\database.cpp(6583) : error C2143: syntax error : missing ';' before 'else'
C:\eqemu\cvs\eqemu\NewSource\common\database.cpp(6583) : error C2143: syntax error : missing ';' before '{'
C:\eqemu\cvs\eqemu\NewSource\common\database.cpp(6583) : error C2447: missing function header (old-style formal list?)
C:\eqemu\cvs\eqemu\NewSource\common\database.cpp(6587) : error C2143: syntax error : missing ';' before '->'
C:\eqemu\cvs\eqemu\NewSource\common\database.cpp(6587) : error C2501: 'in_pp' : missing storage-class or type specifiers
C:\eqemu\cvs\eqemu\NewSource\common\database.cpp(6587) : error C2143: syntax error : missing ';' before '->'
C:\eqemu\cvs\eqemu\NewSource\common\database.cpp(6587) : error C2143: syntax error : missing ';' before '->'
C:\eqemu\cvs\eqemu\NewSource\common\database.cpp(6587) : error C2501: 'in_pp' : missing storage-class or type specifiers
C:\eqemu\cvs\eqemu\NewSource\common\database.cpp(6587) : error C2086: 'in_pp' : redefinition
C:\eqemu\cvs\eqemu\NewSource\common\database.cpp(6587) : error C2143: syntax error : missing ';' before '->'
C:\eqemu\cvs\eqemu\NewSource\common\database.cpp(6587) : error C2143: syntax error : missing ';' before '->'
C:\eqemu\cvs\eqemu\NewSource\common\database.cpp(6587) : error C2501: 'in_pp' : missing storage-class or type specifiers
C:\eqemu\cvs\eqemu\NewSource\common\database.cpp(6587) : error C2086: 'in_pp' : redefinition
C:\eqemu\cvs\eqemu\NewSource\common\database.cpp(6587) : error C2143: syntax error : missing ';' before '->'
C:\eqemu\cvs\eqemu\NewSource\common\database.cpp(6588) : error C2143: syntax error : missing ';' before 'switch'
C:\eqemu\cvs\eqemu\NewSource\common\database.cpp(6589) : error C2143: syntax error : missing ';' before '{'
C:\eqemu\cvs\eqemu\NewSource\common\database.cpp(6589) : error C2447: missing function header (old-style formal list?)
C:\eqemu\cvs\eqemu\NewSource\common\database.cpp(6675) : error C2143: syntax error : missing ';' before 'return'
C:\eqemu\cvs\eqemu\NewSource\common\database.cpp(6676) : error C2143: syntax error : missing ';' before '}'
C:\eqemu\cvs\eqemu\NewSource\common\database.cpp(6676) : error C2143: syntax error : missing ';' before '}'
C:\eqemu\cvs\eqemu\NewSource\common\database.cpp(6676) : error C2143: syntax error : missing ';' before '}'
C:\eqemu\cvs\eqemu\NewSource\common\database.cpp(6681) : error C2143: syntax error : missing ';' before '{'
C:\eqemu\cvs\eqemu\NewSource\common\database.cpp(6681) : error C2447: missing function header (old-style formal list?)
Error executing cl.exe.
Zone.exe - 23 error(s), 0 warning(s)
here is part of my database.cpp where errors occur...
Code:
if (RunQuery(query, MakeAnyLenString(&query, "SELECT x,y,z,zone_id,bind_id FROM start_zones WHERE player_choice=%i and player_class=%i and player_deity=%i and player_race=%i", in_cc->start_zone, in_cc->class_, in_cc->deity, in_cc->race), errbuf, &result)) {
safe_delete_array(query);
if (mysql_num_rows(result) != 0) {
row = mysql_fetch_row(result);
in_pp->y = atoi(row[0]);
in_pp->x = atoi(row[1]);
in_pp->z = atoi(row[2]);
in_pp->zone_id = atoi(row[3]);
in_pp->bind_zone_id = atoi(row[4]);
mysql_free_result(result);
return true;
}
}
else {
LogFile->write(EQEMuLog::Error, "Database: could not find start_zones entry in database. Using Defaults..");
}
mysql_free_result(result);
}
else {
LogFile->write(EQEMuLog::Error, "Database: could not find start_zones table in database. Using Defaults..");
safe_delete_array(query);
}
in_pp->x = 0; in_pp->y = 0; in_pp->z = 0;
switch(in_cc->start_zone)
{
any help here would be awsome.
thanks
cripp