Register for your free account! | Forgot your password?

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

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

Advertisement



Undeclared Indentifier

Discussion on Undeclared Indentifier within the Flyff Private Server forum part of the Flyff category.

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2012
Posts: 948
Received Thanks: 157
Undeclared Indentifier

Hi Elitepvpers,

I am wondering about something.
thats the problem of Undeclared Indentifier. Now the problem is i have declared it in Defineitem.h But for some reason if i am rebuilding it it gives me the error.

This happens also when adding other things that i have defined in DefineItem.h

It looks like if the source is not looking in the Resource folder. But the other items that are already build in the source Ex. II_GEN_MAT_DIAMOND

Is working fine.

I always end up with define the item in the source
Ex.
Code:
if(g_WndMng.GetWndBase( APP_SMELT_JEWEL ))
					{
						#define II_GEN_MAT_CHIP_AMETHYST 50000
						if( pProp->dwID == II_GEN_MAT_DIAMOND ||
							pProp->dwID == II_GEN_MAT_EMERALD ||
							pProp->dwID == II_GEN_MAT_SAPPHIRE ||
							pProp->dwID == II_GEN_MAT_RUBY ||
							pProp->dwID == II_GEN_MAT_TOPAZ ||
							pProp->dwID == II_GEN_MAT_CHIP_AMETHYST)
I dont think its neccesary to do it like this. But i dont see any other way.

Any help would be appriciated.

Source = Blessed.
raventh1984 is offline  
Old 11/05/2014, 10:09   #2
 
elite*gold: 20
Join Date: May 2014
Posts: 172
Received Thanks: 67
define this II_GEN_MAT_DIAMOND in the DefineItem.h (Resource)

DefineItem.h
Code:
#define II_GEN_MAT_DIAMOND 1000000
GentrosOne is offline  
Old 11/05/2014, 10:11   #3
 
elite*gold: 0
Join Date: Mar 2009
Posts: 61
Received Thanks: 3
I usually check stdAfx.h if the header file is included there. which server are you getting the error? world server?
kamoteshake is offline  
Old 11/05/2014, 10:25   #4
 
elite*gold: 0
Join Date: Oct 2012
Posts: 948
Received Thanks: 157
@ GentrosOne Plz read. I have defined it in DefineItem.h

I will check stdAfx.h if the header file is in there.

Checked The header file is inside Stdafx.h
defineItem.h

So that is not the problem either.

Its both WorldServer and Neuz. For every item i am including.
Paths are correctly setup.

So i am gonna check the other source to see if its something else.
raventh1984 is offline  
Old 11/05/2014, 10:51   #5
 
elite*gold: 0
Join Date: Mar 2009
Posts: 61
Received Thanks: 3
maybe you have two resource folders? and maybe it's reading both of them?
kamoteshake is offline  
Old 11/05/2014, 10:56   #6
 
elite*gold: 0
Join Date: Oct 2012
Posts: 948
Received Thanks: 157
Nope only 1 Resource Folder.

and only 1 DefineItem.h

even if i hover over the item i can see its defined.



And if i right click on it and select go to definition and or go to declaration its opening the defineItem.h so i know its correct.

WndField.cpp also includes defineItem.h

also changed it to #include "../../Resource/defineItem.h"
Still no luck


Solved...
Replaced every #include "defineItem.h" to #include "../../Resource/defineItem.h" in the entire source
raventh1984 is offline  
Old 11/05/2014, 13:25   #7
 
elite*gold: 20
Join Date: May 2014
Posts: 172
Received Thanks: 67
Plz post the compile error log here
GentrosOne is offline  
Old 11/05/2014, 15:10   #8
 
elite*gold: 0
Join Date: Oct 2012
Posts: 948
Received Thanks: 157
Quote:
Originally Posted by GentrosOne View Post
Plz post the compile error log here
Its already solved. look above it.
The compile error is item undeclared identifier
raventh1984 is offline  
Closed Thread


Similar Threads Similar Threads
DPSrvr.cpp Undeclared
03/01/2014 - Flyff Private Server - 2 Replies
Good day, I am encountering problem when im adding something in DPSrvr.cpp like SOFA. I already add the item to defineitem.h and already include defineitem.h to DPSrvr.cpp, can anyone help me?
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 identifier
09/27/2013 - Flyff Private Server - 3 Replies
Hallo leute, Ich wollte meine Sourcen neu Kompilieren und dann sind die fehler aufgetreten! C:\Users\Administrator\Desktop\Server\GoH-Source\ Source\_Database\DbManager.cpp(5280): error C2065: 'szNo' : undeclared identifier In der DbManager.cpp der void void CDbManager::SetPlayerName( CQuery* pQueryChar, CQuery* pQueryLog, LPDB_OVERLAPPED_PLUS lpDbOverlappedPlus )
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.



All times are GMT +1. The time now is 12:38.


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