Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Bots

Development::Bots Forum for bots.

Reply
 
Thread Tools Display Modes
  #1  
Old 03-30-2009, 02:31 PM
Dolrese
Fire Beetle
 
Join Date: Mar 2008
Posts: 26
Default

[CODE]../common/database.h:237: error: extra qualification
Reply With Quote
  #2  
Old 03-30-2009, 02:34 PM
Dolrese
Fire Beetle
 
Join Date: Mar 2008
Posts: 26
Default

ok the line above messed up here is the right code

Code:
../common/database.h:237: error: extra qualification Database:: on member ‘GetBotItems’
client.cpp: In function ‘bool CheckCharCreateInfo(CharCreate_Struct*)’:
client.cpp:1269: warning: comparison between signed and unsigned integer expressions
client.cpp:1269: warning: comparison between signed and unsigned integer expressions
client.cpp:1274: warning: comparison between signed and unsigned integer expressions
client.cpp:1274: warning: comparison between signed and unsigned integer expressions
client.cpp:1279: warning: comparison between signed and unsigned integer expressions
client.cpp:1279: warning: comparison between signed and unsigned integer expressions
client.cpp:1284: warning: comparison between signed and unsigned integer expressions
client.cpp:1284: warning: comparison between signed and unsigned integer expressions
client.cpp:1289: warning: comparison between signed and unsigned integer expressions
client.cpp:1289: warning: comparison between signed and unsigned integer expressions
client.cpp:1294: warning: comparison between signed and unsigned integer expressions
client.cpp:1294: warning: comparison between signed and unsigned integer expressions
client.cpp:1299: warning: comparison between signed and unsigned integer expressions
client.cpp:1299: warning: comparison between signed and unsigned integer expressions
make: *** [client.o] Error 1
i checked ../common/database.h:237:

and i says

Code:
    // 3:

    // a)  Get and Set an item in the bot inventory

    bool	BotHasAnItemInSlot(int32 botid, int32 slot);			// return true if it has an item in the invent and false if not

    int		GetBotItemBySlot(int32 botid, int32 slot);				// return the item ID in the given slot

	MYSQL_RES* Database::GetBotItems(int32 botid);

    void	SetBotItemInSlot(int32 botid, int32 slot, int32 itemid);// add an item the in the slot

    void	RemoveBotItemBySlot(int32 botid, int32 slot);			// remove an item in the given slot



	// c) How many items do the bots have

	int		GetBotItemsNumber(int32 botid);							// return the number of items that the bots have
Reply With Quote
  #3  
Old 03-30-2009, 02:42 PM
Congdar
Developer
 
Join Date: Jul 2007
Location: my own little world
Posts: 751
Default

yeah, cut/paste error... delete Database::
I'll update it in my next submit to svn.

I guess Visual Studio doesn't mark it as an error :(
Reply With Quote
  #4  
Old 03-31-2009, 01:13 PM
Dolrese
Fire Beetle
 
Join Date: Mar 2008
Posts: 26
Default

im not understanding what your saying i guess..

i opened /common/database.h
and changed it to MYSQL_RES* GetBotItems(int32 botid);

removeing Database:: i even tryed removeing the entire line and it sill gives the same error.. could you tel me what i should be doing?
Reply With Quote
  #5  
Old 04-03-2009, 10:02 AM
Congdar
Developer
 
Join Date: Jul 2007
Location: my own little world
Posts: 751
Default

Unfortunately I'm little help when it comes to Linux, but removing Database:: from database.h should've eliminated your compile message: ../common/database.h:237: error: extra qualification Database:: on member ‘GetBotItems’
Those other messages are just warnings and shouldn't cause an error unless there's some special linux compile thing that says 'after x amount of warning == error'
Reply With Quote
  #6  
Old 04-03-2009, 02:31 PM
Dolrese
Fire Beetle
 
Join Date: Mar 2008
Posts: 26
Default

so it should read MYSQL_RES* GetBotItems(int32 botid); rather then MYSQL_RES* Database::GetBotItems(int32 botid); or remove the entire line? or what?
Reply With Quote
  #7  
Old 04-03-2009, 02:40 PM
Congdar
Developer
 
Join Date: Jul 2007
Location: my own little world
Posts: 751
Default

this is fixed in svn revision 401. please download the latest source for all the newest updated features and bug fixes. I removed Database::
Reply With Quote
Reply

Thread Tools
Display Modes

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 02:27 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