Register for your free account! | Forgot your password?

You last visited: Today at 10:03

  • Please register to post and access all features, it's quick, easy and FREE!

 

[Crafting[ Problem

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2016
Posts: 13
Received Thanks: 0
[Crafting[ Problem

Hay,
habe folgendes Problem :
Wenn ich das Crafting öffnen möchte Crasht mein Client hier :

Code:
void CWndCrafting::OnDraw( C2DRender* p2DRender ) 
{
	for( int i = 0; i < 10; i++ )
		WndCtrl[i] = GetWndCtrl( WIDC_RUBY_CUSTOM_0 + i );
	for( int i = 0; i < 9; i++ )
	{
        if( m_pItemElem[i] != NULL && m_pTexture[i] != NULL )
		{
			nAlphaBlend = (m_pItemElem[i]->m_Crafting == FALSE) ? NORMAL_ALPHA : TRANSLUCENT_ALPHA;
            m_pTexture[i]->Render( p2DRender, CPoint( WndCtrl[i]->rect.left, WndCtrl[i]->rect.top), nAlphaBlend );

			/*if( m_pItemElem[i]->GetProp()->dwPackMax > 1 )
			{
				short nItemNum	= m_pItemElem[i]->GetExtra();
				TCHAR szTemp[ 32 ];
				_stprintf( szTemp, "%d", nItemNum );
				CSize size = m_p2DRender->m_pFont->GetTextExtent( szTemp );
				int x = WndCtrl[i]->rect.left - 12;	
				int y = WndCtrl[i]->rect.top - 10;
				m_p2DRender->TextOut( x + 42 - size.cx, y + 42 - size.cy, szTemp, 0xff0000ff );
				m_p2DRender->TextOut( x + 41 - size.cx, y + 41 - size.cy, szTemp, 0xffb0b0f0 );
			}*/
		}
	}
	m_pTexture[9] = NULL;
	m_pItemElem[9] = NULL;
	if( nItemIndex == NULL )
	{
		m_pTexture[9] = CWndBase::m_textureMng.AddTexture( D3DDEVICE, MakePath( DIR_ICON, "icon_Forbid.dds" ), 0xffff00ff );
		m_pTexture[9]->Render( p2DRender, CPoint( WndCtrl[9]->rect.left, WndCtrl[9]->rect.top));
		return;
	}

	ItemProp* pItem = prj.GetItemProp( nItemIndex );
	if( !pItem )
		return;

	CItemElem* pItemElem = new CItemElem;
	pItemElem->m_dwItemId = pItem->dwID;
	pItemElem->m_nItemNum = 1;
	pItemElem->SetAbilityOption( 0 );
	pItemElem->m_nHitPoint = pItem->dwEndurance;
	
	m_pTexture[9] = CWndBase::m_textureMng.AddTexture( D3DDEVICE, MakePath( DIR_ITEM, pItem->szIcon ), 0xffff00ff );
	m_pTexture[9]->Render( p2DRender, CPoint( WndCtrl[9]->rect.left, WndCtrl[9]->rect.top));
	m_pItemElem[9] = pItemElem;
}
Code:
		m_pTexture[9]->Render( p2DRender, CPoint( WndCtrl[9]->rect.left, WndCtrl[9]->rect.top));
Das System ist aus der VeteranFly Source



illuminaticonfirm is offline  
Old   #2
 
elite*gold: 150
Join Date: Mar 2008
Posts: 309
Received Thanks: 239
Schreibs lieber neu, ist besser


Nortix is offline  
Old   #3

 
elite*gold: 18
The Black Market: 103/0/0
Join Date: Sep 2009
Posts: 20,099
Received Thanks: 14,276
Das ist mein altes Crafting System, neuschreiben würde ich dir eher empfehlen als das zu benutzen.
Sedrika is offline  
Old   #4
 
elite*gold: 0
Join Date: Feb 2016
Posts: 13
Received Thanks: 0
hmm okey. Anderes problem:
ich kann keine Skills in die Taskleiste ziehen woran liegt das ich habe __NEW_SKILL_TREE eingefügt von der Erendora Source
illuminaticonfirm is offline  
Reply



« Previous Thread | Next Thread »

Similar Threads
[Problem]Crafting system.
Hi. I have problem with new cube or Crafting System. I can't see items and refines on "papirus" board. Quest: quest cube begin state start...
6 Replies - Metin2 PServer - Discussions / Questions
Crafting Problem
hello epvp my english is very bad~~ i hope you understand me this is my problem: http://epvpimg.com/FGJCb you see? the photo of item like...
2 Replies - Metin2 PServer - Discussions / Questions
Crafting Problem
Servus zusammen, habe momentan ein Problem wo ich überhaupt nicht weiter komme... Habe bei mir das Craftingsystem eingefügt und soweit klappt auch...
4 Replies - Metin2 PServer - Discussions / Questions
Crafting Problem
Wenn ich in den slots die ich mit dem Roten X gekennzeichnet habe meine zutaten zum Craften rein packe, kommt immer "du hast nicht genug zutaten"...
0 Replies - Metin2 PServer - Discussions / Questions
Crafting Problem
Habe Minecraft seit eine Stunde nun, aber irgendwie krieg ich keine Spitzhacke hin Ich drücke E, und tuh oben rechts dann halt das rein: ...
5 Replies - Minecraft



All times are GMT +1. The time now is 10:03.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.