Eu tava tentando colocar a função Reserve life taker
http://www.mpgh.net/forum/397-combat...-para-usa.html
mas esta dando esses erros
olha
1>------ Début de la génération*: Projet*: CABASE, Configuration*: Release Win32 ------
1>Compilation en cours...
1>Base.cpp
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(64) : error C2039: 'LifeTak3r' : is not a member of 'cBase'
1> c:\users\cacau\desktop\gx4hxr lug fail\cabase\Base.h(20) : see declaration of 'cBase'
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(339) : error C2065: 'g_LTClient' : undeclared identifier
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(339) : error C2065: 'CLTClient' : undeclared identifier
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(339) : error C2059: syntax error : ')'
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(340) : error C2065: 'g_CommonLT' : undeclared identifier
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(340) : error C2065: 'g_LTClient' : undeclared identifier
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(340) : error C2227: left of '->Common' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(341) : error C2065: 'g_LTClient' : undeclared identifier
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(341) : error C3861: 'ValidPointer': identifier not found
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(343) : error C2065: 'CAutoMessage' : undeclared identifier
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(343) : error C2146: syntax error : missing ';' before identifier 'Msg'
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(343) : error C2065: 'Msg' : undeclared identifier
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(344) : error C2065: 'Msg' : undeclared identifier
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(344) : error C2228: left of '.Writeuint8' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(345) : error C2065: 'Msg' : undeclared identifier
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(345) : error C2228: left of '.Writeuint8' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(346) : error C2065: 'Msg' : undeclared identifier
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(346) : error C2228: left of '.Writeuint8' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(347) : error C2065: 'Msg' : undeclared identifier
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(347) : error C2228: left of '.Writeuint8' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(348) : error C2065: 'Msg' : undeclared identifier
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(348) : error C2228: left of '.Writeuint8' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(349) : error C2065: 'Msg' : undeclared identifier
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(349) : error C2228: left of '.Writeuint8' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(350) : error C2065: 'Msg' : undeclared identifier
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(350) : error C2228: left of '.Writeuint8' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(351) : error C2065: 'Msg' : undeclared identifier
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(351) : error C2228: left of '.Writeuint8' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(352) : error C2065: 'Msg' : undeclared identifier
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(352) : error C2228: left of '.Writeuint8' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(353) : error C2065: 'Msg' : undeclared identifier
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(353) : error C2228: left of '.Writeuint8' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(354) : error C2065: 'Msg' : undeclared identifier
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(354) : error C2228: left of '.Writeuint8' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(355) : error C2065: 'Msg' : undeclared identifier
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(355) : error C2228: left of '.Writeuint8' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(356) : error C2065: 'Msg' : undeclared identifier
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(356) : error C2228: left of '.Writeuint8' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(357) : error C2065: 'Msg' : undeclared identifier
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(357) : error C2228: left of '.Writeuint8' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(358) : error C2065: 'Msg' : undeclared identifier
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(358) : error C2228: left of '.Writeuint8' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(359) : error C2065: 'Msg' : undeclared identifier
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(359) : error C2228: left of '.Writeuint8' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(360) : error C2065: 'Msg' : undeclared identifier
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(360) : error C2228: left of '.Writeuint8' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(361) : error C2065: 'Msg' : undeclared identifier
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(361) : error C2228: left of '.Writeuint8' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(362) : error C2065: 'Msg' : undeclared identifier
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(362) : error C2228: left of '.Writeuint8' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(363) : error C2065: 'Msg' : undeclared identifier
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(363) : error C2228: left of '.Writeuint8' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(364) : error C2065: 'Msg' : undeclared identifier
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(364) : error C2228: left of '.Writeuint8' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(365) : error C2065: 'Msg' : undeclared identifier
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(365) : error C2228: left of '.Writeuint8' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(366) : error C2065: 'Msg' : undeclared identifier
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(366) : error C2228: left of '.Writeuint8' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(367) : error C2065: 'Msg' : undeclared identifier
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(367) : error C2228: left of '.Writeuint8' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(368) : error C2065: 'Msg' : undeclared identifier
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(368) : error C2228: left of '.Writeuint8' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(369) : error C2065: 'Msg' : undeclared identifier
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(369) : error C2228: left of '.Writeuint8' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(370) : error C2065: 'Msg' : undeclared identifier
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(370) : error C2228: left of '.Writeuint8' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(371) : error C2065: 'Msg' : undeclared identifier
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(371) : error C2228: left of '.Writeuint8' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(372) : error C2065: 'Msg' : undeclared identifier
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(372) : error C2228: left of '.Writeuint8' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(373) : error C2065: 'Msg' : undeclared identifier
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(373) : error C2228: left of '.Writeuint8' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(374) : error C2065: 'Msg' : undeclared identifier
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(374) : error C2228: left of '.Writeuint8' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(375) : error C2065: 'Msg' : undeclared identifier
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(375) : error C2228: left of '.Writeuint8' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(376) : error C2065: 'Msg' : undeclared identifier
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(376) : error C2228: left of '.Writeuint8' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(377) : error C2065: 'Msg' : undeclared identifier
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(377) : error C2228: left of '.Writeuint8' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(378) : error C2065: 'Msg' : undeclared identifier
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(378) : error C2228: left of '.Writeuint8' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(379) : error C2065: 'Msg' : undeclared identifier
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(379) : error C2228: left of '.Writeuint8' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(380) : error C2065: 'Msg' : undeclared identifier
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(380) : error C2228: left of '.Writeuint8' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(381) : error C2065: 'Msg' : undeclared identifier
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(381) : error C2228: left of '.Writeuint8' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(382) : error C2065: 'Msg' : undeclared identifier
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(382) : error C2228: left of '.Writeuint8' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(383) : error C2065: 'Msg' : undeclared identifier
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(383) : error C2228: left of '.Writeuint8' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(384) : error C2065: 'Msg' : undeclared identifier
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(384) : error C2228: left of '.Writeuint8' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(385) : error C2065: 'Msg' : undeclared identifier
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(385) : error C2228: left of '.Writeuint8' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(386) : error C2065: 'Msg' : undeclared identifier
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(386) : error C2228: left of '.Writeuint8' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(387) : error C2065: 'Msg' : undeclared identifier
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(387) : error C2228: left of '.Writeuint8' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(388) : error C2065: 'Msg' : undeclared identifier
1>c:\users\cacau\desktop\gx4hxr lug fail\cabase\Itens.h(388) : fatal error C1003: error count exceeds 100; stopping compilation
1>Le journal de génération a été enregistré à l'emplacement "file://c:\Users\cacau\Desktop\Gx4hxR LUG FAIL\CABASE\Release\BuildLog.htm"
1>CABASE - 102 erreur(s), 0 avertissement(s)
========== Génération*: 0 a réussi, 1 a échoué, 0 mis à jour, 0 a été ignoré ==========
No present eu coloquei assim Lif3Tak3r na vairavel coloquei certo mas due erro a base é a whit o menu deichei assim AdicionarItem("Life Taker" , Opt_on_off, &lifetaker, 2, MENUITEM);
a função deichei assim
void Lif3Tak3r(LPDIRECT3DDEVICE9 pDevice)
{
if((*(BYTE *)GameStatus == 1) && LifeTak3r)
{
g_LTClient = *(CLTClient**)LTClientDLL;
g_CommonLT = g_LTClient->Common();
if(ValidPointer(g_LTClient))
{
CAutoMessage Msg;
Msg.Writeuint8(114);
Msg.Writeuint8(0); //1
Msg.Writeuint8(0); //2
Msg.Writeuint8(0); //3
Msg.Writeuint8(0); //4
Msg.Writeuint8(0); //5
Msg.Writeuint8(0); //6
Msg.Writeuint8(0); //7
Msg.Writeuint8(0); //8
Msg.Writeuint8(0); //9
Msg.Writeuint8(0); //10
Msg.Writeuint8(0); //11
Msg.Writeuint8(0); //12
Msg.Writeuint8(0); //13
Msg.Writeuint8(0); //14
Msg.Writeuint8(0); //15
Msg.Writeuint8(6); //16 Character //23 is viper // Character by mmbob or DrUnKeN ChEeTaH
Msg.Writeuint8(1);
Msg.Writeuint8(0);
Msg.Writeuint8(1); //19 Rank // Rank by mmbob or DrUnKeN ChEeTaH
Msg.Writeuint8(1); // 20
Msg.Writeuint8(0); // 21
Msg.Writeuint8(0);
Msg.Writeuint8(0);
Msg.Writeuint8(3);
Msg.Writeuint8(1);
Msg.Writeuint8(255);
Msg.Writeuint8(3);
Msg.Writeuint8(0);
Msg.Writeuint8(255);
Msg.Writeuint8(0);
Msg.Writeuint8(0);
Msg.Writeuint8(255);
Msg.Writeuint8(0);
Msg.Writeuint8(0);
Msg.Writeuint8(255);
Msg.Writeuint8(0);
Msg.Writeuint8(0);
Msg.Writeuint8(0);
Msg.Writeuint8(0);
Msg.Writeuint8(3);
Msg.Writeuint8(19);
Msg.Writeuint8(0);
Msg.Writeuint8(0);
Msg.Writeuint8(47);
Msg.Writeuint8(68);
Msg.Writeuint8(114);//144
Msg.Writeuint8(89);
Msg.Writeuint8(3);
Msg.Writeuint8(0);
Msg.Writeuint8(4);
Msg.Writeuint8(106);
Msg.Writeuint8(0);
Msg.Writeuint8(255);
Msg.Writeuint8(255);
Msg.Writeuint8(255);
Msg.Writeuint8(254);
Msg.Writeuint8(255);
Msg.Writeuint8(254);
Msg.Writeuint8(255);
Msg.Writeuint8(254);
Msg.Writeuint8(255);
Msg.Writeuint8(24);
Msg.Writeuint8(0);
Msg.Writeuint8(255);
Msg.Writeuint8(1);
Msg.Writeuint16(209); // Weapon Spawn by PerfecBR
g_LTClient->SendToServer(Msg.Read(), MESSAGE_GUARANTEED);
Spamm3r = 0;
}
}
}