View Single Post
  #9  
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