Player Shop

03/07/2015 11:59 Grening#1
Hallo,

Ich habe aus der GOW Source die Funktion
Code:
__CHIP_PLAYERSHOP
bei mir eingebaut, aber beim compilen des Worldservers kommen Errors.
Alle Voids werden als Error angezeigt.

Code:
c:.....\WORLDSERVER\DPSrvr.cpp(9710): error C2601: 'CDPSrvr::OnAngleBuff' : local function definitions are illegal
[Only registered and activated users can see links. Click Here To Register...]


Ich hoffe es kann mir jemand dabei helfen.
03/07/2015 12:02 raventh1984#2
You are missing an ; or an } check the code
03/07/2015 12:34 Grening#3
I found the missing } and now the Error says

Code:
C:....\Source\_Common\MoverItem.cpp(817): error C2065: 'g_dpDBClient' : undeclared identifier
Code:
 C:....\Source\_Common\MoverItem.cpp(817): error C2228: left of '.SendQueryPostMail' must have class/struct/union type
        type is ''unknown-type''

I have looked up for it in the GOW Source but can´t find something that could help me.
03/07/2015 12:57 Sanctuary'#4
Wenn du wirklich alles aus der GoW Source rausgenommen hast von dem System dann wird es auch funktionieren..
Habe es ebenfalls bei mir drin & es funktioniert ohne Probleme..

Überprüf einfach deinen gesamten Code & du wirst den Fehler selbst finden.
03/07/2015 14:00 Grening#5
Danke für die Hilfe, nach mehrmaligem Nachschauen und probieren habe ich es nun auch hinbekommen.

Thanks for the help, after some tries I finally made it.
03/07/2015 14:16 n5xda#6
Würdest du uns mitteilen wie du es komplett eingefügt hast in der Source?
03/07/2015 14:23 xMeher#7
I think its not a missing "{" maybe you have put it in a private class not a public one
03/07/2015 14:32 Grening#8
DPSrvr.cpp
Code:
#endif // __EXTENDED_CURRENCY
							pUser->m_vtInfo.VendorSetItem( nId, iIndex, nNum, nCost, nBuyMode );
							pUser->AddRegisterPVendorItem( iIndex, 0, nId, nNum, nCost, nBuyMode );
#else // __CHIP_PLAYERSHOP
			pUser->m_vtInfo.VendorSetItem( nId, iIndex, nNum, nCost );
			pUser->AddRegisterPVendorItem( iIndex, 0, nId, nNum, nCost );
#endif // __CHIP_PLAYERSHOP
	}
}
} <---- This was missing and generatet the Void errors

Quote:
Originally Posted by n5xda View Post
Würdest du uns mitteilen wie du es komplett eingefügt hast in der Source?
Ich habe in der GoW Source alle Einträge von der Funktion suchen lassen und einfach an die selbe Stelle in meiner Source eingetragen.
Installier mal Visual Assist X, vielleicht hilft dir das etwas. (Benutze ich auch)

P.S. Die Resdata.inc Einträge nicht vergessen sonst wird es nicht angezeigt wenn du einen Shop öffnest
03/24/2015 16:30 randeljohnvalencia#9
can u how to put the code of

#ifdef __CHIP_PLAYERSHOP
#ifdef __EXTENDED_CURRENCY

is Error for me for compile
[Only registered and activated users can see links. Click Here To Register...]

sorry for bad english