😎 Help with Coding

Posts 1–6 of 6 · Page 1 of 1
wrong section lmao post in helpn next time also... fix ur pic and vid so i can see... and others
my Sprite
void CreateSprite1(LPDIRECT3DDEVICE9 pDevice)
{
POS.x = 20; POS.y = 277; POS.z = 0;
if(txColor == NULL)D3DXCreateTextureFromFileInMemoryEx(pDevice
,&Color,sizeof(Color),270,80,D3DX_DEFAULT,0,D3DFMT _UNKNOWN
,D3DPOOL_MANAGED,D3DX_DEFAULT,D3DX_DEFAULT,0,NULL, NULL,&txColor);
D3DXCreateSprite(pDevice, &spColor);
Create = FALSE;
}
CreateSprite1(pDevice);
spColor->Begin(NULL);
spColor->Draw(txColor, NULL, NULL, &POS, 0xFFFFFFFF);
spColor->End();
help me plz, i use it and crash when join game
your not resetting the sprite.

use this

Code:
LPDIRECT3DDEVICE9 g_pDevice = 0;

void ReCreate(LPDIRECT3DDEVICE9 pDevice)
{
	if (g_pDevice != pDevice)
	{
		g_pDevice = pDevice;
		try
		{
			if (spColor != 0)
				spColor->Release();
		} catch (...) {}

		spColor = 0;

                spColor->Begin(NULL);
                spColor->Draw(txColor, NULL, NULL, &POS, 0xFFFFFFFF);
                spColor->End();        
	}
}
Call that in reset. And it SHOULD fix it. (what I used to do with combat arms)
thank you, now i try
@ac1d_buRn lol not work with my hak, when i call in myPresent is work but in myReset not work.
Posts 1–6 of 6 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us