Czesc mam taki kod i musze go skompilowac.
struct tagInterfaceState
{
/*<bitfield this+0x0>*/ /*|0x4|*/ unsigned long use:2;
/*<bitfield this+0x0>*/ /*|0x4|*/ unsigned long state:4;
/*<bitfield this+0x0>*/ /*|0x4|*/ unsigned long type:0xA;
};
THE CODE BELOW GOES TO OBJECTSTRUCT
/*<thisrel this+0xe74>*/ /*|0x4|*/ struct tagInterfaceState m_IfState;
Przyklad:
case 0xBC:
if(ObjTable[aIndex].m_IfState.use > 0 && ObjTable[aIndex].m_IfState.type != 12)
LogAddFunc(2,"[Anti-Hack][Trade Dupe] [Lahap] (%s)(%s)",gObj->AccountID,gObj->Name);
DupeProtection(aIndex);
return false;
break;
-----
void DupeProtection(aIndex)
{
if (DupePunishmentSystem = 0)
{
return;
}
if (PunishmentType = 1)
{
GCServerMsgStringSend("Kiss My Ass Nawb",aIndex,1);
}
if (PunishmentType = 2)
{
GCServerMsgStringSend("Hai, You Just Got BANNED",aIndex,1);
SQL.Execute(UPDATE MuOnline.dbo.MEMB_INFO SET ctl1_code = '1' WHERE memb___id = '%s'",gObj->AccountID);
}
else
{
do nothing
}
}
Definicja:
#define LogAddFunc ((void(*) (unsigned char cor,char* Texto,...)) 0x00403CC9) <- For 1.00.18 GS
Wyrzuca mi blad przy case, jestem zielona w c++ ma ktoś może ochotę pomóc przy tym?