Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 19:46

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Roc Compile error

Discussion on Roc Compile error within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2010
Posts: 107
Received Thanks: 1
Roc Compile error

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
clinkz96 is offline  
Old 12/17/2011, 10:32   #2
 
TaKumi x3's Avatar
 
elite*gold: 0
Join Date: Apr 2010
Posts: 125
Received Thanks: 37
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
TaKumi x3 is offline  
Old 12/17/2011, 10:35   #3
 
elite*gold: 0
Join Date: Mar 2010
Posts: 107
Received Thanks: 1
yah i read it and find that...but i dont see the 'g'....and i just replace the original files but it still error
clinkz96 is offline  
Old 12/17/2011, 10:43   #4
 
TaKumi x3's Avatar
 
elite*gold: 0
Join Date: Apr 2010
Posts: 125
Received Thanks: 37
if you Read that, you can find one more than that 'g'
TaKumi x3 is offline  
Old 12/17/2011, 10:55   #5
 
elite*gold: 0
Join Date: Mar 2010
Posts: 107
Received Thanks: 1
in the line 10 theres no 'g'..
clinkz96 is offline  
Old 12/17/2011, 11:01   #6
 
TaKumi x3's Avatar
 
elite*gold: 0
Join Date: Apr 2010
Posts: 125
Received Thanks: 37
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.
TaKumi x3 is offline  
Old 12/17/2011, 11:14   #7
 
elite*gold: 0
Join Date: Mar 2010
Posts: 107
Received Thanks: 1
still not working dude..
clinkz96 is offline  
Old 12/17/2011, 11:18   #8
 
TaKumi x3's Avatar
 
elite*gold: 0
Join Date: Apr 2010
Posts: 125
Received Thanks: 37
Lawl!

Re-Download the Source and delete your's and follow that Tutorial --> <--

( delete the '*' )
TaKumi x3 is offline  
Old 12/17/2011, 11:21   #9
 
elite*gold: 0
Join Date: Mar 2010
Posts: 107
Received Thanks: 1
yah..thats i gonna do tommorow...!
clinkz96 is offline  
Reply


Similar Threads Similar Threads
[SOURCE]Compile Error
10/20/2011 - Flyff Private Server - 24 Replies
hey ho com, heute wollte ich mal die v15 source compilen und schon error´s :( Ich habe alles genau nach dem TuT von Fullscreen gemacht also das Compilen :) Log ------ Rebuild All started: Project: DatabaseServer, Configuration: Release Win32 ------ Deleting intermediate files and output files for project 'DatabaseServer', configuration 'Release|Win32'. Compiling...
Neuz compile error
09/15/2011 - Flyff Private Server - 3 Replies
when I compile my Neuz in release it in the right, but when I compile it in nogameguard the error "D3D9.h". someone help me please
Compile Error
07/22/2011 - Flyff Private Server - 2 Replies
Hi epvp, ich habe seit einiger Zeit solche Errors beim compilen meines Sources: http://img814.imageshack.us/img814/2195/screenya. png Was kann ich tun? Vor ein paar Tagen habe ich den Source auch kompiliert und habe keinerlei errors bekommen.. Was kann ich tun?
Compile Error
06/23/2011 - Flyff Private Server - 11 Replies
Hi Leute. Ich wollte grad die Source kompilen genauer Core Server aufeinmal kommen diese Errors Compiling... StdAfx.cpp Compiling... serverdesc.cpp mytrace.cpp heapmng.cpp ar.cpp sock.cpp \Users\Emre\Desktop\v16\Source\_Network\Net\Src\s ock.cpp(61) : error C2084: function 'void CSock::Detach(void)' already has a body
World compile error
12/15/2010 - Flyff Private Server - 2 Replies
Hi und zwar enn ich meinen world server (andem hab ich noch garnix gemacht) compilen will kommt dieser error hier: kann mir vielelciht helfen?



All times are GMT +1. The time now is 19:47.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.