m_abHideCoat Error

08/30/2016 03:26 Houyi201cz#1
WndField.Cpp :
Code:
#ifdef __SYS_280514
		for( int i = 0; i < 5; ++i )
		{
			if( nID == m_awndCheckHide[i].GetWndId() )
			{
				g_Option.m_abHideCoat[i] = !m_awndCheckHide[i].GetCheck();
				g_DPlay.SendHideCoat(i,!m_awndCheckHide[i].GetCheck());
			}
		}
#endif // __SYS_280514
Error:
Code:
error C2039: 'm_abHideCoat' : is not a member of 'COption'
i Get the source code of Gow source, and does not need to edit in HwOption. but if I'm wrong and you have a solution they can help me, thanks
08/30/2016 03:47 Avalion#2
3rd thread asking for help with the same thing.

[Only registered and activated users can see links. Click Here To Register...]
^ Is the answer. You missed m_abHideCoat in HwOption in the class COption.
08/30/2016 03:51 Houyi201cz#3
Quote:
Originally Posted by Avalion View Post
3rd thread asking for help with the same thing.

[Only registered and activated users can see links. Click Here To Register...]
^ Is the answer. You missed m_abHideCoat in HwOption in the class COption.
New Error
Code:
wndfield.cpp error C2109: subscript requires array or pointer type
Fixed i put this in hwoption.h. but now i get this error
Code:
#ifdef __SYS_280514
	DWORD   m_abHideCoat;
#endif //__SYS_280514
08/30/2016 05:23 Avalion#4
Quote:
Originally Posted by Houyi201cz View Post
New Error
Code:
wndfield.cpp error C2109: subscript requires array or pointer type
Quote:
subscript requires array or pointer type
The subscript was used on a variable that was not an array.
The following sample generates C2109:
// C2109.cpp
Code:
int main() {
   int a, b[10] = {0};
   a[0] = 1;   // C2109
   b[0] = 1;   // OK
}
[Only registered and activated users can see links. Click Here To Register...]