Roc Compile error

12/17/2011 09:37 clinkz96#1
Worldserver:
d:\Documents and Settings\xxxx\Desktop\my full v17 source and resource\v17 source\Source\my source\Build\Source\_Network\Misc\Include\heapMng. h(7) : error C2143: syntax error : missing ';' before '<class-head>'
d:\Documents and Settings\xxxxx\Desktop\my full v17 source and resource\v17 source\Source\my source\Build\Source\_Network\Misc\Include\heapMng. h(7) : error C2501: 'g' : missing storage-class or type specifiers

Neuz:
d:\Documents and Settings\xxxx\Desktop\my full v17 source and resource\v17 source\Source\my source\Build\Source\_Common\pocket.h(10) : error C2143: syntax error : missing ';' before '<class-head>'
d:\Documents and Settings\xxxx\Desktop\my full v17 source and resource\v17 source\Source\my source\Build\Source\_Common\pocket.h(10) : error C2501: 'g' : missing storage-class or type specifiers
12/17/2011 10:32 TaKumi x3#2
Hallo,

Wie wäre es denn, wenn du mal lesen würdest?

Quote:
Originally Posted by clinkz96 View Post
Worldserver:
d:\Documents and Settings\xxxx\Desktop\my full v17 source and resource\v17 source\Source\my source\Build\Source\_Network\Misc\Include\heapMng.h(7) : error C2143: syntax error : missing ';' before '<class-head>'
d:\Documents and Settings\xxxxx\Desktop\my full v17 source and resource\v17 source\Source\my source\Build\Source\_Network\Misc\Include\heapMng.h(7) : error C2501: 'g' : missing storage-class or type specifiers

Neuz:
d:\Documents and Settings\xxxx\Desktop\my full v17 source and resource\v17 source\Source\my source\Build\Source\_Common\pocket.h(10) : error C2143: syntax error : missing ';' before '<class-head>'
d:\Documents and Settings\xxxx\Desktop\my full v17 source and resource\v17 source\Source\my source\Build\Source\_Common\pocket.h(10) : error C2501: 'g' : missing storage-class or type specifiers
MfG
12/17/2011 10:35 clinkz96#3
yah i read it and find that...but i dont see the 'g'....and i just replace the original files but it still error
12/17/2011 10:43 TaKumi x3#4
if you Read that, you can find one more than that 'g'
12/17/2011 10:55 clinkz96#5
in the line 10 theres no 'g'..
12/17/2011 11:01 TaKumi x3#6
Try :

Pocket.h

Code:
#ifndef __POCKET_H__
#define	__POCKET_H__

#if defined(__WORLDSERVER) || defined(__CLIENT)
#include "item.h"
#endif	// __WORLDSERVER || __CLIENT

#include "ar.h"

class CPocket : public CItemContainer<CItemElem>
{
public:
// Constructions
	CPocket();
	virtual	~CPocket();

// Attributes
	void	SetExpired( BOOL bExpired )	{	m_bExpired	= bExpired;		}
	BOOL	IsExpired( void )	{	return m_bExpired;	}
	void	SetExpirationDate( time_t tExpirationDate )	{	m_tExpirationDate	= tExpirationDate;		}
	time_t	GetExpirationDate( void )	{	return m_tExpirationDate;	}
	void	Copy( CPocket & rPocket );
// Operations
	void	Serialize( CAr & ar );

private:
	BOOL	m_bExpired;
	time_t	m_tExpirationDate;
};

#define	MAX_POCKET	3
#define	POCKET_SLOT_SIZE_0	6
#define	POCKET_SLOT_SIZE_1_2	48

typedef	struct	_PocketController_Result
{
	int		nPocket;
	int		nItem;
	int		nNum;
	_PocketController_Result( int p, int i, int n )
	{
		nPocket		= p;
		nItem	= i;
		nNum	= n;
	}
}	PocketController_Result;

class CPocketController
{
public:
// Constructions
	CPocketController();
	virtual	~CPocketController();
#ifdef __WORLDSERVER
	void	Init( CMover* pMover )	{	m_pMover	= pMover;	}
#endif	// __WORLDSERVER
	void	Clear( void );
// Operations
	CItemElem*	GetAtId( int nPocket, int nItem, BOOL bExpiration = TRUE );	
//	BOOL	Add( CItemElem* pItemElem, vector<PocketController_Result>* apResult );
	BOOL	Add( int nPocket, CItemElem*pItemElem, vector<PocketController_Result>* apResult = NULL );
	BOOL	RemoveAtId( int nPocket, int nItem, int nNum );		// if nNum < 0, remove all.
	int		RemoveItem( DWORD dwItemId, int nNum );
	
	int		GetEmptyCount( void );
	BOOL	IsAllClean( void );
	int		GetCount( DWORD dwItemId );
	
	BOOL	IsAvailable( int nPocket, BOOL bExpiration = TRUE )
		{	return( m_apPocket[nPocket] && ( !bExpiration || !m_apPocket[nPocket]->IsExpired() ) );		}
	void	Avail( int nPocket, time_t t = 0 );

	enum	{	expired, avail,	};
	void	SetAttribute( int nAttribute, int nPocket, int nData );
	time_t		GetAvailable( int nPocket );

	void	Copy( CPocketController & rPocketController );
	void	Serialize( CAr & ar );

#ifdef __WORLDSERVER
	void	ProcessExpiring( void );
#endif	// __WORLDSERVER
	CPocket*	GetPocket( int nPocket );

#ifdef __CLIENT
	CItemElem*	GetAt( int nPocket, int nIndex );
#endif	// __CLIENT

private:
#ifdef __WORLDSERVER
	CMover*	m_pMover;
#endif	// __WORLDSERVER
	CPocket*	m_apPocket[MAX_POCKET];
};
#endif	// __POCKET_H__
HeapMng.h

Code:
#ifndef __HEAPMNG_H__
#define __HEAPMNG_H__

#pragma once

class CHeapMng
{
public:
	virtual	~CHeapMng();
	void*	Malloc( size_t nSize );
#ifdef __VM_0819
	CHeapMng( const char* szHeap );
	void	Free( LPVOID lpMem, size_t nSize );
	void*	Realloc( LPVOID lpMem, size_t nSize, size_t nOldSize );
	void	Log();
#else	// __VM_0819
	CHeapMng ();
	void	Free( LPVOID lpMem );
	void*	Realloc( LPVOID lpMem, size_t nSize );
#endif	// __VM_0819
private:
	HANDLE	m_hHeap;
#ifdef __VM_0819
	CRITICAL_SECTION	m_cs;
	char	m_szHeap[100];
	int	m_nAlloc;
	size_t	m_nTotal;
#endif	// __VM_0819
};
#endif //__HEAPMNG_H__
Replace and make a Solution.
12/17/2011 11:14 clinkz96#7
still not working dude..
12/17/2011 11:18 TaKumi x3#8
Lawl!

Re-Download the Source and delete your's and follow that Tutorial --> [Only registered and activated users can see links. Click Here To Register...] <--

( delete the '*' )
12/17/2011 11:21 clinkz96#9
yah..thats i gonna do tommorow...!