Hello all,
I have problem with load file.
The wordserver and Neuz , generates the error test 1 but not test 2, there's a reading problem and I do not see my error: s, So as there's a problem reading my Neuz not want to connect.
Thank you for helping me
Krust
I have problem with load file.
Code:
BOOL CProject::LoadScriptPremium( LPCTSTR lpszFileName )
{
CScript scanner;
if( scanner.Load( lpszFileName, FALSE ) == FALSE )
{
Error( "%s not found", lpszFileName );
return FALSE;
}
while( scanner.tok != FINISHED )
{
if( scanner.Token == _T( "COLOR_PREMIUM" ) )
{
m_Premium.dwColorPremium = scanner.GetNumber();
}
else if ( scanner.Token == _T( "GOLD_PREMIUM" ) )
{
m_Premium.mGoldPremium = scanner.GetNumber();
}
else if (scanner.Token == _T( "EXP_PREMIUM" ) )
{
m_Premium.mExpPremium = scanner.GetNumber();
}
else if (scanner.Token == _T( "DROP_PREMIUM" ) )
{
m_Premium.mDropPremium = scanner.GetNumber();
}
scanner.GetToken();
}
Error("test 1");
return TRUE;
Error("test 2");
}
Thank you for helping me
Krust