Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 12:49

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

Advertisement



undeclared identifier

Discussion on undeclared identifier within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2013
Posts: 5
Received Thanks: 1
undeclared identifier

Hallo leute,

Ich wollte meine Sourcen neu Kompilieren und dann sind die fehler aufgetreten!

Code:
C:\Users\Administrator\Desktop\Server\GoH-Source\Source\_Database\DbManager.cpp(5280): error C2065: 'szNo' : undeclared identifier
In der DbManager.cpp der void

Code:
void CDbManager::SetPlayerName( CQuery* pQueryChar, CQuery* pQueryLog, LPDB_OVERLAPPED_PLUS lpDbOverlappedPlus )
{
	CAr ar( lpDbOverlappedPlus->lpBuf, lpDbOverlappedPlus->uBufSize );

	u_long idPlayer;
	DWORD dwData;
	char lpszPlayer[MAX_PLAYER];
	ar >> idPlayer;
	ar.ReadString( lpszPlayer, MAX_PLAYER );
	ar >> dwData;
	
	BOOL f	= FALSE;
	char szQuery[QUERY_SIZE]	= { 0,};
	DBQryCharacter( szQuery, "D1", idPlayer, g_appInfo.dwSys, lpDbOverlappedPlus->AccountInfo.szAccount, szNo); // Das ist line 5280
	if( pQueryChar->Exec( szQuery ) )
	{
		if( pQueryChar->Fetch() )
			f	= (BOOL)pQueryChar->GetInt( "fError" );
		char lpOutputString[128]	= { 0, };
		sprintf( lpOutputString, "DATABASESERVER.EXE\t// QM_SET_PLAYER_NAME\t//1(%d)\n", f );
		OutputDebugString( lpOutputString );
	}
	else
	{
		OutputDebugString( "DATABASESERVER.EXE\t// QM_SET_PLAYER_NAME\t//0(0)\n" );
	}

	if( f )
	{
Ich hoffe ihr könnt mir helfen
.Cityzap is offline  
Old 09/25/2013, 19:03   #2
 
lolxdflyx3's Avatar
 
elite*gold: 0
Join Date: Jul 2011
Posts: 331
Received Thanks: 64
Hi,
ich weiß zwar nicht welche Source du benutzt, aber bei mir sieht das so aus:

Code:
void CDbManager::SetPlayerName( CQuery* pQueryChar, CQuery* pQueryLog, LPDB_OVERLAPPED_PLUS lpDbOverlappedPlus )
{
	CAr ar( lpDbOverlappedPlus->lpBuf, lpDbOverlappedPlus->uBufSize );

	u_long idPlayer;
	DWORD dwData;
	char lpszPlayer[MAX_PLAYER];
	ar >> idPlayer;
	ar.ReadString( lpszPlayer, MAX_PLAYER );
	ar >> dwData;
	
	BOOL f	= FALSE;
	char szQuery[QUERY_SIZE]	= { 0,};
	DBQryCharacter( szQuery, "U4", idPlayer, g_appInfo.dwSys, NULL, lpszPlayer );
	if( pQueryChar->Exec( szQuery ) )
	{
		if( pQueryChar->Fetch() )
			f	= (BOOL)pQueryChar->GetInt( "fError" );
		char lpOutputString[128]	= { 0, };
		sprintf( lpOutputString, "DATABASESERVER.EXE\t// QM_SET_PLAYER_NAME\t//1(%d)\n", f );
		OutputDebugString( lpOutputString );
	}
	else
	{
		OutputDebugString( "DATABASESERVER.EXE\t// QM_SET_PLAYER_NAME\t//0(0)\n" );
	}

	if( f )
	{
Edit:
Quote:
Originally Posted by Arcitc™ View Post
steht doch da welche source :P
Code:
\GoH-Source\Source
würde dir empfehlen mal die Source neu zuladen und nochmal compillen :P
oder Frag den der die Releast hat ob er weiß wie man den error fixxen tut

Lg
fail
lolxdflyx3 is offline  
Old 09/27/2013, 14:26   #3

 
elite*gold: 353
Join Date: Jan 2013
Posts: 923
Received Thanks: 616
Quote:
Originally Posted by lolxdflyx3 View Post
Hi,
ich weiß zwar nicht welche Source du benutzt, aber bei mir sieht das so aus:

Code:
void CDbManager::SetPlayerName( CQuery* pQueryChar, CQuery* pQueryLog, LPDB_OVERLAPPED_PLUS lpDbOverlappedPlus )
{
	CAr ar( lpDbOverlappedPlus->lpBuf, lpDbOverlappedPlus->uBufSize );

	u_long idPlayer;
	DWORD dwData;
	char lpszPlayer[MAX_PLAYER];
	ar >> idPlayer;
	ar.ReadString( lpszPlayer, MAX_PLAYER );
	ar >> dwData;
	
	BOOL f	= FALSE;
	char szQuery[QUERY_SIZE]	= { 0,};
	DBQryCharacter( szQuery, "U4", idPlayer, g_appInfo.dwSys, NULL, lpszPlayer );
	if( pQueryChar->Exec( szQuery ) )
	{
		if( pQueryChar->Fetch() )
			f	= (BOOL)pQueryChar->GetInt( "fError" );
		char lpOutputString[128]	= { 0, };
		sprintf( lpOutputString, "DATABASESERVER.EXE\t// QM_SET_PLAYER_NAME\t//1(%d)\n", f );
		OutputDebugString( lpOutputString );
	}
	else
	{
		OutputDebugString( "DATABASESERVER.EXE\t// QM_SET_PLAYER_NAME\t//0(0)\n" );
	}

	if( f )
	{
steht doch da welche source :P
Code:
\GoH-Source\Source
würde dir empfehlen mal die Source neu zuladen und nochmal compillen :P
oder Frag den der die Releast hat ob er weiß wie man den error fixxen tut

Lg
Kiseku is offline  
Old 09/27/2013, 20:46   #4
 
elite*gold: 10
Join Date: Feb 2011
Posts: 1,760
Received Thanks: 501
...

Kopier einfach genau die Funktion mal aus einer anderen Source. Ich weis nicht was das szNo ist aber es fehlt halt nur die declaration.
Velmore is offline  
Reply


Similar Threads Similar Threads
notice_in_map undeclared function?
11/23/2013 - Metin2 Private Server - 3 Replies
Anyone else getting this error? Calls undeclared function! : notice_in_map Abort trap (core dumped) Error occured on compile metinevent.quest SF Daroo metinevent.quest
Undeclared indentifier
01/08/2013 - Flyff Private Server - 0 Replies
Hi Epvpers. Iam having an wierd problem When i am adding something in DPSrvr.cpp for example untbinding. I am getting the famous undeclared identifier. The strange problem is that in my resource folder in defineitem.h It is defined.
identifier for unique id
10/24/2012 - Cabal Online - 8 Replies
in order for me to properly store any default values such as your nation when to activate spy mode i need some sort of value that is unique to the character such as char id or something else related to that. anyone care to offer insight? int tempnat = *(DWORD*)(ADDR_BASE+A_NATION); void Start(){ while (1){ if(GetKeyState(VK_F9) < 0){
item identifier?
07/21/2012 - CO2 Private Server - 1 Replies
I recently started playing CO2 again.. and i remember a long time ago there was a script that you added into your CO2 folder that made it so you could see what items were before you picked them up... I was wondering if something like this is still out and if so where?



All times are GMT +2. The time now is 12:49.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.