Unknow error by me?

Posts 1–9 of 9 · Page 1 of 1
Unknow error by me?
Hello, yesterday i was coding... all gone perfect...
now i open it and if i want to compile i get this ;

1>c:\users\gebruiker\desktop\new hook\hacks.h(4) : error C2059: syntax error : 'if'
1>c:\users\gebruiker\desktop\new hook\hacks.h(4) : error C2143: syntax error : missing ')' before ';'
1>c:\users\gebruiker\desktop\new hook\hacks.h(5) : error C2447: '{' : missing function header (old-style formal list?)
1>c:\users\gebruiker\desktop\new hook\base.cpp(31) : error C2447: '{' : missing function header (old-style formal list?)
1>c:\users\gebruiker\desktop\new hook\base.cpp(63) : warning C4390: ';' : empty controlled statement found; is this the intent?
1>c:\users\gebruiker\desktop\new hook\base.cpp(64) : error C3861: 'GenerateTexture': identifier not found
1>c:\users\gebruiker\desktop\new hook\base.cpp(65) : error C3861: 'GenerateTexture': identifier not found
1>c:\users\gebruiker\desktop\new hook\base.cpp(66) : error C3861: 'GenerateTexture': identifier not found
1>c:\users\gebruiker\desktop\new hook\base.cpp(67) : error C3861: 'GenerateTexture': identifier not found
1>c:\users\gebruiker\desktop\new hook\base.cpp(68) : error C3861: 'GenerateTexture': identifier not found
1>c:\users\gebruiker\desktop\new hook\base.cpp(69) : error C3861: 'GenerateTexture': identifier not found
1>c:\users\gebruiker\desktop\new hook\base.cpp(70) : error C3861: 'GenerateTexture': identifier not found
1>c:\users\gebruiker\desktop\new hook\base.cpp(71) : error C3861: 'GenerateTexture': identifier not found
1>c:\users\gebruiker\desktop\new hook\base.cpp(72) : error C3861: 'GenerateTexture': identifier not found


Here are the source codes ;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~

#include "Addies.h"

LPVOID pHacks(char *game);
if (GetModuleHandle(game);
{
//Codes hier
if(c_slot5){ *(long*)(ServerPtr+OFS_5SLOT) = 1; }
if(c_slot6){ *(long*)(ServerPtr+OFS_6SLOT) = 1; }
}

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~

if(Color);
{
GenerateTexture(pDevice, &White, WHITE2);
GenerateTexture(pDevice, &Red, RED2);
GenerateTexture(pDevice, &Green, GREEN2);
GenerateTexture(pDevice, &Blue, BLUE2);
GenerateTexture(pDevice, &Black, BLACK2);
GenerateTexture(pDevice, &Purple, PURPLE2);
GenerateTexture(pDevice, &Grey, GREY2);
GenerateTexture(pDevice, &Yellow, YELLOW2);
GenerateTexture(pDevice, &Orange, ORANGE2);
Color = false;
}
HRESULT GenerateTexture(IDirect3DDevice9 *pD3Ddev, IDirect3DTexture9 **ppD3Dtex, DWORD colour32)
{
if( FAILED(pD3Ddev->CreateTexture(8, 8, 1, 0, D3DFMT_A4R4G4B4, D3DPOOL_MANAGED, ppD3Dtex,NULL)) )
return E_FAIL;

WORD colour16 = ((WORD)((colour32>>28)&0xF)<<12)
|(WORD)(((colour32>>20)&0xF)<<8)
|(WORD)(((colour32>>12)&0xF)<<4)
|(WORD)(((colour32>>4)&0xF)<<0);

D3DLOCKED_RECT d3dlr;
(*ppD3Dtex)->LockRect(0, &d3dlr, 0, 0);
WORD *pDst16 = (WORD*)d3dlr.pBits;

for(int xy=0; xy < 8*8; xy++)
*pDst16++ = colour16;

(*ppD3Dtex)->UnlockRect(0);

return S_OK;
}
Use this for C3861 error .
Quote Originally Posted by Naruto Boy View Post
Use this for C3861 error .

Now i got ;

Quote Originally Posted by CODE
1>c:\users\gebruiker\desktop\new hook\hacks.h(4) : error C2059: syntax error : 'if'
1>c:\users\gebruiker\desktop\new hook\hacks.h(4) : error C2143: syntax error : missing ')' before ';'
1>c:\users\gebruiker\desktop\new hook\hacks.h(5) : error C2447: '{' : missing function header (old-style formal list?)
1>c:\users\gebruiker\desktop\new hook\base.cpp(31) : error C2447: '{' : missing function header (old-style formal list?)
1>c:\users\gebruiker\desktop\new hook\base.cpp(76) : error C2059: syntax error : 'return'
1>c:\users\gebruiker\desktop\new hook\base.cpp(78) : error C2059: syntax error : '}'
1>c:\users\gebruiker\desktop\new hook\base.cpp(78) : error C2143: syntax error : missing ';' before '}'
1>c:\users\gebruiker\desktop\new hook\base.cpp(78) : error C2059: syntax error : '}'
1>c:\users\gebruiker\desktop\new hook\base.cpp(81) : error C2143: syntax error : missing ';' before '{'
1>c:\users\gebruiker\desktop\new hook\base.cpp(81) : error C2447: '{' : missing function header (old-style formal list?)
1>c:\users\gebruiker\desktop\new hook\base.cpp(228) : error C3861: 'D3Ddiscover': identifier not found
1>Build log was saved at "file://c:\Users\Gebruiker\Desktop\New Hook\Debug\BuildLog.htm"
1>KarraKa Public Base - 11 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
PVOID D3Ddiscover(void *tbl, int size)
{
HWND hWnd;
void *pInterface=0 ;
D3DPRESENT_PARAMETERS d3dpp;

if ((hWnd=CreateWindowEx(NULL,WC_DIALOG,"",WS_OVERLAP PED,0,0,50,50,NULL,NULL,NULL,NULL))==NULL) return 0;
ShowWindow(hWnd, SW_HIDE);

LPDIRECT3D9 pD3D;
LPDIRECT3DDEVICE9 pD3Ddev;
if ((pD3D = Direct3DCreate9(D3D_SDK_VERSION))!=NULL)

{
ZeroMemory(&d3dpp, sizeof(d3dpp));
d3dpp.Windowed = TRUE;
d3dpp.SwapEffect = D3DSWAPEFFECT_DISCARD;
d3dpp.hDeviceWindow = hWnd;
d3dpp.BackBufferFormat = D3DFMT_X8R8G8B8;
d3dpp.BackBufferWidth = d3dpp.BackBufferHeight = 600;
pD3D->CreateDevice(D3DADAPTER_DEFAULT,D3DDEVTYPE_HAL,hW nd,D3DCREATE_SOFTWARE_VERTEXPROCESSING,&d3dpp,&pD3 Ddev);
if (pD3Ddev) {
pInterface = (PDWORD)*(DWORD *)pD3Ddev;
memcpy(tbl,(void *)pInterface,size);
pD3Ddev->Release();
}
pD3D->Release();
}
DestroyWindow(hWnd);
return pInterface;
}
Quote Originally Posted by Pitcher View Post
@Naruto Boy

Hahaa, where i have to put that xD
Base.cpp
@Naruto Boy

HMM. Can you add me on msn.. i dont understand u. Sorry.

i pmed u my msn
You don't know where your base.cpp is ?
Quote Originally Posted by Terell. View Post
You don't know where your base.cpp is ?
Im sure he knows , but that was a fail attempt to help anyway
Posts 1–9 of 9 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us