Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Support > Archive::Windows Servers

Archive::Windows Servers Archive area for Windows Servers's posts that were moved here after an inactivity period of 90 days.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 11-18-2003, 11:25 AM
Cripp's Avatar
Cripp
Discordant
 
Join Date: Oct 2003
Location: The Shire
Posts: 474
Default

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
__________________
Nug Blazers - ServerOP / founder
^^comming... later!

www.nugblazers.com
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 12:19 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3