Willkommen ~Gast!
Registrieren || Einloggen || Hilfe/FAQ || Staff
Probleme mit der Registrierung im Forum? Melde dich unter registerEin Bild.
Autor Beitrag
000
19.03.2002, 14:00
MurdoC



Keine Angst ich bin kein extremer n00b mehr aber selbst da_exe konnte mir nicht helfen also dachte ich mach ich ein Post auf!!

Also das sind die Fehlermeldungen:

Compiling...
python.cpp
D:\Mod Projekt\DarK_forCe\dlls\laserspot.h(5) : error C2011: 'CLaserSpot' : 'class' type redefinition
D:\Mod Projekt\DarK_forCe\dlls\python.cpp(143) : error C2065: 'm_pSpot' : undeclared identifier
D:\Mod Projekt\DarK_forCe\dlls\python.cpp(145) : error C2227: left of '->Killed' must point to class/struct/union
D:\Mod Projekt\DarK_forCe\dlls\python.cpp(150) : error C2440: '=' : cannot convert from 'class CLaserSpot *' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
D:\Mod Projekt\DarK_forCe\dlls\python.cpp(179) : error C2227: left of '->pev' must point to class/struct/union
rpg.cpp
D:\Mod Projekt\DarK_forCe\dlls\laserspot.h(5) : error C2011: 'CLaserSpot' : 'class' type redefinition
D:\Mod Projekt\DarK_forCe\dlls\rpg.cpp(47) : error C2084: function 'void __cdecl laser_spot(struct entvars_s *)' already has a body
Error executing cl.exe.

hl.dll - 7 error(s), 0 warning(s)

Falls ich den Code posten soll sagt es bitte!

--

Wer anderen ein Grube gräbt, der hat wohl ein Grubengrabgerät...
-----------------------------
http://www.murdocs-world.de
*****ICQ 126894404*****

zum Seitenanfang zum Seitenende Profil || Suche
001
19.03.2002, 14:06
[RMen]OneStone



Du musst die Definition vom CLaserSpot aus der rpg.cpp raushauen und die laserspot.h in der rpg.cpp includieren.

--

georg-wicherski@pixel-house.net | http://www.pixel-house.net/ - Coding Resource| http://www.google.de/

zum Seitenanfang zum Seitenende Profil || Suche
002
19.03.2002, 16:38
Retro



D:\Mod Projekt\DarK_forCe\dlls\laserspot.h(5) : error C2011: 'CLaserSpot' : 'class' type redefinition

Nene, er währe besser beraten CLaserSpot in seiner neuen Waffe umzubenennen CBlaLaserSpot z.B...

P.S.: Das andere werden folge oder newbiefehler sein.

--

shielding people from their own stupidity is an evolutionary step backwards anyway.

/* God is dead!............Nietzsche */
/* Nietzsche is dead!......God */
/* Nietzsche is God!.......The Dead */


Dieser Beitrag wurde am 19.03.2002 um 16:39 von Retro bearbeitet.
zum Seitenanfang zum Seitenende Profil || Suche
003
19.03.2002, 17:32
MurdoC



ich hab jetzt deinen Vorschlag aufgegabelt retro und nun staune welche fehler kommen (ach ich n00 schäm mich so):

Compiling...
python.cpp
D:\Mod Projekt\DarK_forCe\dlls\python.cpp(214) : error C2065: 'm_pSpot' : undeclared identifier
D:\Mod Projekt\DarK_forCe\dlls\python.cpp(216) : error C2227: left of '->Killed' must point to class/struct/union
D:\Mod Projekt\DarK_forCe\dlls\python.cpp(221) : error C2440: '=' : cannot convert from 'class CblaLaserSpot *' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
D:\Mod Projekt\DarK_forCe\dlls\python.cpp(250) : error C2227: left of '->pev' must point to class/struct/union
rpg.cpp
Error executing cl.exe.

hl.dll - 4 error(s), 0 warning(s)

--

Wer anderen ein Grube gräbt, der hat wohl ein Grubengrabgerät...
-----------------------------
http://www.murdocs-world.de
*****ICQ 126894404*****

zum Seitenanfang zum Seitenende Profil || Suche
004
19.03.2002, 17:35
Retro



omfg, newbiefehler. Keine definition für m_pSpot usw vorhanden...

Lern C++! Der rest liegt auch an deinem neuen Code.

--

shielding people from their own stupidity is an evolutionary step backwards anyway.

/* God is dead!............Nietzsche */
/* Nietzsche is dead!......God */
/* Nietzsche is God!.......The Dead */

zum Seitenanfang zum Seitenende Profil || Suche
005
20.03.2002, 07:38
Exec



hmpf, stop! ich hab dir nich geholfen, weil ich zu faul war ;)

musst halt, wie retro gesagt hat, einfach m_pSpot noch definieren ... (irgendwo in weapons.h afaik)

--

"selbermachen rockt am meisten :D" - -LeJean-

zum Seitenanfang zum Seitenende Profil || Suche
006
21.03.2002, 20:22
Thrillhouse



kriegt ma in diesem forum bei codingfragen eigentlich in jedem thread mindestens einmal die Antwort "Lern C++"????

--

zum Seitenanfang zum Seitenende Profil || Suche
007
21.03.2002, 20:34
Archangel



HHLSJjip sdaädasd
wie oft denn noch?

die vorraussetzung fürs hlsdk ist, c++ zu können, und wer kein C++ kann, der hat am HLSDK _NIX_ verloren!

--

Mar 01 01:10:13 <voice> jo
Mar 01 01:10:40 <voice> bis dann ^^
Mar 01 01:11:20 <Archangel> jo
**** ENDING LOGGING AT Tue Mar 1 01:58:13 2005

zum Seitenanfang zum Seitenende Profil || Suche
008
21.03.2002, 21:02
Jotzet



man kann ja aber trotzdem helfen, sonst kann man das foruma uch weglas..sen.

--

- Herr der Ringe Multiplayer-Mod => www.middlewars.de.vu
- German Tactical Group Clanpage => www.gtg-csclan.de
...mfg Jotzet

zum Seitenanfang zum Seitenende Profil || Suche
009
21.03.2002, 21:51
Retro



Nicht wenn keine Grundlagen da sind...

[ATOMBOMBENPIC]

--

shielding people from their own stupidity is an evolutionary step backwards anyway.

/* God is dead!............Nietzsche */
/* Nietzsche is dead!......God */
/* Nietzsche is God!.......The Dead */

zum Seitenanfang zum Seitenende Profil || Suche