Cr3V3TT3
02-03-2005, 18:01
hi,
how to get the includes i need for a command :? ?
UserMessageBegin((IRecipientFilter &)mrf, "HudMsg" );
WRITE_BYTE ( 3 & 0xFF );
WRITE_FLOAT( ss_hudmsg_x.GetFloat() );
WRITE_FLOAT( ss_hudmsg_y.GetFloat() );
WRITE_BYTE ( ss_hudmsg_red.GetInt() );
WRITE_BYTE ( ss_hudmsg_green.GetInt() );
WRITE_BYTE ( ss_hudmsg_blue.GetInt() );
WRITE_BYTE ( ss_hudmsg_alpha.GetInt() );
WRITE_BYTE ( ss_hudmsg_red.GetInt() );
WRITE_BYTE ( ss_hudmsg_green.GetInt() );
WRITE_BYTE ( ss_hudmsg_blue.GetInt() );
WRITE_BYTE ( ss_hudmsg_alpha.GetInt() );
WRITE_BYTE ( 0 );
WRITE_FLOAT( 0.0 );
WRITE_FLOAT( 0.0 );
WRITE_FLOAT( ss_hudmsg_time.GetInt() );
WRITE_FLOAT( 0 );
WRITE_STRING( mess );
MessageEnd();
When compile that got the errors
C:\mymods\SOundsSource\src\utils\Sounds_Sourc e\sounds_source.cpp(651) : error C2065: 'UserMessageBegin' : undeclared identifier
C:\mymods\SOundsSource\src\utils\Sounds_Sourc e\sounds_source.cpp(652) : error C2065: 'WRITE_BYTE' : undeclared identifier
C:\mymods\SOundsSource\src\utils\Sounds_Sourc e\sounds_source.cpp(653) : error C2065: 'WRITE_FLOAT' : undeclared identifier
C:\mymods\SOundsSource\src\utils\Sounds_Sourc e\sounds_source.cpp(668) : error C2065: 'WRITE_STRING' : undeclared identifier
C:\mymods\SOundsSource\src\utils\Sounds_Sourc e\sounds_source.cpp(669) : error C2065: 'MessageEnd' : undeclared identifier
That mean those commands are not registered i think
So try to include dlls\gameinterface.h
But get the errors :
..\..\dlls\gameinterface.h(15) : error C2143: syntax error : missing ';' before '*'
..\..\dlls\gameinterface.h(15) : error C2501: 'g_pStringTableInfoPanel' : missing storage-class or type specifiers
..\..\dlls\gameinterface.h(102) : error C2143: syntax error : missing ';' before '*'
..\..\dlls\gameinterface.h(102) : error C2501: 'ClientPutInServerOverrideFn' : missing storage-class or type specifiers
..\..\dlls\gameinterface.h(104) : error C2146: syntax error : missing ')' before identifier 'fn'
..\..\dlls\gameinterface.h(104) : error C2182: 'ClientPutInServerOverride' : illegal use of type 'void'
..\..\dlls\gameinterface.h(104) : error C2440: 'initializing' : cannot convert from 'int *(__cdecl *)(struct edict_t *,const char *)' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
..\..\dlls\gameinterface.h(104) : error C2059: syntax error : ')'
C:\mymods\SOundsSource\src\utils\Sounds_Sourc e\sounds_source.cpp(651) : error C2065: 'UserMessageBegin' : undeclared identifier
C:\mymods\SOundsSource\src\utils\Sounds_Sourc e\sounds_source.cpp(652) : error C2065: 'WRITE_BYTE' : undeclared identifier
C:\mymods\SOundsSource\src\utils\Sounds_Sourc e\sounds_source.cpp(653) : error C2065: 'WRITE_FLOAT' : undeclared identifier
C:\mymods\SOundsSource\src\utils\Sounds_Sourc e\sounds_source.cpp(668) : error C2065: 'WRITE_STRING' : undeclared identifier
C:\mymods\SOundsSource\src\utils\Sounds_Sourc e\sounds_source.cpp(669) : error C2065: 'MessageEnd' : undeclared identifier
I think i miss one file but if i add a file i have more errors.....
Do you got any tutorials to help me plz?
how to get the includes i need for a command :? ?
UserMessageBegin((IRecipientFilter &)mrf, "HudMsg" );
WRITE_BYTE ( 3 & 0xFF );
WRITE_FLOAT( ss_hudmsg_x.GetFloat() );
WRITE_FLOAT( ss_hudmsg_y.GetFloat() );
WRITE_BYTE ( ss_hudmsg_red.GetInt() );
WRITE_BYTE ( ss_hudmsg_green.GetInt() );
WRITE_BYTE ( ss_hudmsg_blue.GetInt() );
WRITE_BYTE ( ss_hudmsg_alpha.GetInt() );
WRITE_BYTE ( ss_hudmsg_red.GetInt() );
WRITE_BYTE ( ss_hudmsg_green.GetInt() );
WRITE_BYTE ( ss_hudmsg_blue.GetInt() );
WRITE_BYTE ( ss_hudmsg_alpha.GetInt() );
WRITE_BYTE ( 0 );
WRITE_FLOAT( 0.0 );
WRITE_FLOAT( 0.0 );
WRITE_FLOAT( ss_hudmsg_time.GetInt() );
WRITE_FLOAT( 0 );
WRITE_STRING( mess );
MessageEnd();
When compile that got the errors
C:\mymods\SOundsSource\src\utils\Sounds_Sourc e\sounds_source.cpp(651) : error C2065: 'UserMessageBegin' : undeclared identifier
C:\mymods\SOundsSource\src\utils\Sounds_Sourc e\sounds_source.cpp(652) : error C2065: 'WRITE_BYTE' : undeclared identifier
C:\mymods\SOundsSource\src\utils\Sounds_Sourc e\sounds_source.cpp(653) : error C2065: 'WRITE_FLOAT' : undeclared identifier
C:\mymods\SOundsSource\src\utils\Sounds_Sourc e\sounds_source.cpp(668) : error C2065: 'WRITE_STRING' : undeclared identifier
C:\mymods\SOundsSource\src\utils\Sounds_Sourc e\sounds_source.cpp(669) : error C2065: 'MessageEnd' : undeclared identifier
That mean those commands are not registered i think
So try to include dlls\gameinterface.h
But get the errors :
..\..\dlls\gameinterface.h(15) : error C2143: syntax error : missing ';' before '*'
..\..\dlls\gameinterface.h(15) : error C2501: 'g_pStringTableInfoPanel' : missing storage-class or type specifiers
..\..\dlls\gameinterface.h(102) : error C2143: syntax error : missing ';' before '*'
..\..\dlls\gameinterface.h(102) : error C2501: 'ClientPutInServerOverrideFn' : missing storage-class or type specifiers
..\..\dlls\gameinterface.h(104) : error C2146: syntax error : missing ')' before identifier 'fn'
..\..\dlls\gameinterface.h(104) : error C2182: 'ClientPutInServerOverride' : illegal use of type 'void'
..\..\dlls\gameinterface.h(104) : error C2440: 'initializing' : cannot convert from 'int *(__cdecl *)(struct edict_t *,const char *)' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
..\..\dlls\gameinterface.h(104) : error C2059: syntax error : ')'
C:\mymods\SOundsSource\src\utils\Sounds_Sourc e\sounds_source.cpp(651) : error C2065: 'UserMessageBegin' : undeclared identifier
C:\mymods\SOundsSource\src\utils\Sounds_Sourc e\sounds_source.cpp(652) : error C2065: 'WRITE_BYTE' : undeclared identifier
C:\mymods\SOundsSource\src\utils\Sounds_Sourc e\sounds_source.cpp(653) : error C2065: 'WRITE_FLOAT' : undeclared identifier
C:\mymods\SOundsSource\src\utils\Sounds_Sourc e\sounds_source.cpp(668) : error C2065: 'WRITE_STRING' : undeclared identifier
C:\mymods\SOundsSource\src\utils\Sounds_Sourc e\sounds_source.cpp(669) : error C2065: 'MessageEnd' : undeclared identifier
I think i miss one file but if i add a file i have more errors.....
Do you got any tutorials to help me plz?