|
You last visited: Today at 12:49
Advertisement
undeclared identifier
Discussion on undeclared identifier within the Flyff Private Server forum part of the Flyff category.
09/25/2013, 15:18
|
#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
|
|
|
09/25/2013, 19:03
|
#2
|
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™
steht doch da welche source :P
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
|
|
|
09/27/2013, 14:26
|
#3
|
elite*gold: 353
Join Date: Jan 2013
Posts: 923
Received Thanks: 616
|
Quote:
Originally Posted by lolxdflyx3
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
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
|
|
|
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.
|
|
|
|
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.
|
|