v17 inventory tabs

03/04/2012 09:52 trashee09#1
Edit: Fixed :))
03/04/2012 10:29 N8Schatten#2
Also habe ich das richtig verstanden dein Invi hat zwar 4 Funktionierende
Tabs aber die items werden nicht richtig sortiert richtig?

Fals ja wie werden sie denn sortiert?
03/04/2012 10:57 trashee09#3
Quote:
Originally Posted by N8Schatten View Post
Also habe ich das richtig verstanden dein Invi hat zwar 4 Funktionierende
Tabs aber die items werden nicht richtig sortiert richtig?

Fals ja wie werden sie denn sortiert?
yes

I got that right but my Invi has four functioning
Tabs but the items are not properly sorted/stored.
03/04/2012 12:32 N8Schatten#4
why did you do these // there?
Code:
    //m_Inventory.RemoveAtId( dwId );
and why FALSE and not TRUE?
Code:
    if ( ( ItemProp*)m_Inventory2.GetAtId ( IK2_CLOTH ), FALSE )
03/04/2012 13:06 Krustenkäse#5
1. GetAtId( DWORD dwIndex ) returns the Item located in a fixed item array at a particular position ( m_apItem[dwIndex] ) so it's wrong to deliver an IK3 ( an Itemproperty ) to the GetAtId Function
2. If you write GetAtId ( IK3_PET == IK3_EGG == IK3_FEED ) then the computer will check if IK3_PET is equal to IK3_EGG and is equal to IK3_FEED which results in false and thus false which equals 0 will be delivered to the function --> your functioncall will look like GetAtId( 0 )

Besides that i would recommend you to use if( bla == FALSE ) instead of if( bla, FALSE ) and when you are using pointers you should write if( bla == NULL ) --> ( look for Nullpointers )