Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 07:39

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

Advertisement



Syntax error wtf?

Discussion on Syntax error wtf? within the Flyff Private Server forum part of the Flyff category.

Closed Thread
 
Old   #1
 
Serenity-.'s Avatar
 
elite*gold: 20
Join Date: Jun 2013
Posts: 445
Received Thanks: 76
Syntax error wtf?

Leute ich habe beim Model Change die dinge auskommentiert die man nicht changen darf aber es kommt immer wieder dieser error...

Serenity-. is offline  
Old 12/15/2013, 18:12   #2
ベトナム警察




 
Lumi's Avatar
 
elite*gold: 0
The Black Market: 517/0/0
Join Date: Jan 2012
Posts: 16,497
Received Thanks: 3,524
Show us the code above this error.
Lumi is offline  
Old 12/15/2013, 18:22   #3
 
Serenity-.'s Avatar
 
elite*gold: 20
Join Date: Jun 2013
Posts: 445
Received Thanks: 76
Hier

Quote:
#ifdef __MODEL_CHANGE
CWndModelChange::CWndModelChange()
{
for( int i = 0; i < 3; i++ )
{
pItemElem[i] = NULL;
pTexture[i] = NULL;

}
}
CWndModelChange::~CWndModelChange()
{
for( int i = 0; i < 3; i++ )
{
if( pItemElem[i] != NULL )
{
if( !g_pPlayer->m_vtInfo.IsTrading( pItemElem[i] ))
pItemElem[i]->SetExtra(0);
}
}
}

BOOL CWndModelChange::Initialize( CWndBase* pWndParent, DWORD dwType )
{
return CWndNeuz::InitDialog( g_Neuz.GetSafeHwnd(), APP_LOOKCHANGE, 0, CPoint( 0, 0 ), pWndParent );
}

BOOL CWndModelChange::OnCommand( UINT nID, DWORD dwMessage, CWndBase* pWndBase )
{
return CWndNeuz::OnCommand( nID, dwMessage, pWndBase );
}
void CWndModelChange::OnSize( UINT nType, int cx, int cy )
{
CWndNeuz::OnSize( nType, cx, cy );
}
void CWndModelChange::OnLButtonUp( UINT nFlags, CPoint point )
{
}
void CWndModelChange::OnLButtonDown( UINT nFlags, CPoint point )
{
}
BOOL CWndModelChange::OnDropIcon( LPSHORTCUT pShortcut, CPoint point )
{
LPWNDCTRL wndCtrl[3];
wndCtrl[0] = GetWndCtrl( WIDC_STATIC1 );
wndCtrl[1] = GetWndCtrl( WIDC_STATIC2 );
wndCtrl[2] = GetWndCtrl( WIDC_STATIC3 );
for( int i = 0; i < sizeof(wndCtrl)/sizeof(LPWNDCTRL); i++ )
{
if( i == 2)
continue;

if( !wndCtrl[i] )
{
continue;
}
if( wndCtrl[i]->rect.PtInRect( point ))
{

if( i == 1 && pItemElem[0] == NULL)
continue;

CItemElem* pTempElem;
pTempElem = (CItemElem*) g_pPlayer->GetItemId( pShortcut->m_dwId );
ItemProp* pItemProp = pTempElem->GetProp();

if(i == 0 && pTempElem->m_dwnewID != NULL )
{
g_WndMng.PutString("Only Items with unchanged Models", 0,0xff0000);
return FALSE;
}

if(pItemElem[0] && i == 1)
{
if(pItemElem[0]->GetProp()->dwID == pTempElem->GetProp()->dwID)
{
g_WndMng.PutString("You cant change the Model to the same Model", 0, 0xff0000);
return FALSE;
}
if(pItemElem[0]->GetProp()->dwParts != pTempElem->GetProp()->dwParts)
{
g_WndMng.PutString("The Item is not the same Part as the Primary Item", 0,0xff0000);
return FALSE;
}

if(pItemElem[0]->GetProp()->dwItemKind3 != pTempElem->GetProp()->dwItemKind3)
{
g_WndMng.PutString("The Items must have the Same ItemKind",0,0xff0000);
return FALSE;
}
if(pItemElem[0]->GetProp()->dwHanded != pTempElem->GetProp()->dwHanded)
{
g_WndMng.PutString("Du kannst keine Mehrhand in Einhand oder Einhand in MehrHand Model ändern!");
return FALSE;
}

}
if(pTempElem->GetProp()->dwParts != PARTS_RWEAPON &&
pTempElem->GetProp()->dwParts != PARTS_LWEAPON &&
pTempElem->GetProp()->dwParts != PARTS_MASK &&
pTempElem->GetProp()->dwParts != PARTS_CLOAK &&
pTempElem->GetProp()->dwParts != PARTS_SHIELD &&
//pTempElem->GetProp()->dwParts !=PARTS_HAND &&
//pTempElem->GetProp()->dwParts !=PARTS_FOOT &&
//pTempElem->GetProp()->dwParts !=PARTS_CAP &&
//pTempElem->GetProp()->dwParts !=PARTS_ROBE &&
//pTempElem->GetProp()->dwParts !=PARTS_CLOAK &&
//pTempElem->GetProp()->dwParts !=PARTS_HAT &&
//pTempElem->GetProp()->dwParts !=PARTS_CLOTH &&
//pTempElem->GetProp()->dwParts !=PARTS_GLOVE &&
//pTempElem->GetProp()->dwParts !=PARTS_UPPER_BODY &&
//pTempElem->GetProp()->dwParts !=PARTS_BOOTS &&

)
{
g_WndMng.PutString("You cant change the Model from this Part!", 0,0xff0000);
return FALSE;
}
Serenity-. is offline  
Old 12/15/2013, 18:26   #4
 
elite*gold: 0
Join Date: Sep 2013
Posts: 39
Received Thanks: 76
Change it to
Code:
if(pTempElem->GetProp()->dwParts != PARTS_RWEAPON && 
pTempElem->GetProp()->dwParts != PARTS_LWEAPON && 
pTempElem->GetProp()->dwParts != PARTS_MASK && 
pTempElem->GetProp()->dwParts != PARTS_CLOAK && 
pTempElem->GetProp()->dwParts != PARTS_SHIELD )
Btw it isn't safe to ask for the ItemProp in the Client, better ask for the ItemProp in DPSrvr.cpp .

PS: Hat bestimmt so ein Pixelfehler dieses Modelchange gecoded
Iban24 is offline  
Thanks
2 Users
Old 12/15/2013, 18:27   #5
 
elite*gold: 0
Join Date: Dec 2010
Posts: 164
Received Thanks: 54
Code:
if(pTempElem->GetProp()->dwParts != PARTS_RWEAPON &&
pTempElem->GetProp()->dwParts != PARTS_LWEAPON &&
pTempElem->GetProp()->dwParts != PARTS_MASK &&
pTempElem->GetProp()->dwParts != PARTS_CLOAK &&
pTempElem->GetProp()->dwParts != PARTS_SHIELD [COLOR="Red"]&&[/COLOR]
//pTempElem->GetProp()->dwParts !=PARTS_HAND &&
//pTempElem->GetProp()->dwParts !=PARTS_FOOT &&
//pTempElem->GetProp()->dwParts !=PARTS_CAP &&
//pTempElem->GetProp()->dwParts !=PARTS_ROBE &&
//pTempElem->GetProp()->dwParts !=PARTS_CLOAK &&
//pTempElem->GetProp()->dwParts !=PARTS_HAT &&
//pTempElem->GetProp()->dwParts !=PARTS_CLOTH &&
//pTempElem->GetProp()->dwParts !=PARTS_GLOVE &&
//pTempElem->GetProp()->dwParts !=PARTS_UPPER_BODY &&
//pTempElem->GetProp()->dwParts !=PARTS_BOOTS &&

)
Shouldnt be there, or?

Edit: zu langsam xd
Thejin is offline  
Old 12/15/2013, 19:20   #6
 
Serenity-.'s Avatar
 
elite*gold: 20
Join Date: Jun 2013
Posts: 445
Received Thanks: 76
Danke IBan hat geklappt
Serenity-. is offline  
Closed Thread


Similar Threads Similar Threads
PHP Syntax Error
06/19/2013 - Shaiya Private Server - 4 Replies
I got a small Problem with Php at a voting script... I get this Error: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in C:\xampp\htdocs\blabla\bla\blablabla\vote\vote.php on line 136 Thats Line 136 $result3 = mssql_query("SELECT * FROM PS_UserData.dbo.user_votes WHERE ip = '".$ip."' AND Site = '".$site."' || UserID = '".$UserID."' AND Site = "'.$site."' ",$mslink); Would be great if anyone would be able to help me, ty for any answers.
[PHP] syntax error
12/15/2012 - Web Development - 4 Replies
Hallo ich weiß nich warum der fehler kommt aber vllt. wisst ihr es Parse error: syntax error, unexpected T_ELSE in .... on line 37 $Mailbetreff = "Kontakt: ".$_REQUEST; mail($Empfaenger, $Mailbetreff, $Mailnachricht, "From: " .$_REQUEST);
[PHP] syntax error
12/15/2012 - Web Development - 0 Replies
Ausversehen 2 mal abgeschickt hab schon clsrq abgeschickt
Parse error: syntax error, unexpected T_VARIABLE
08/05/2012 - Web Development - 3 Replies
Hallo, bekomme diese Meldung: An sich findet man meistens den Fehler, ich bin jetzt aber schon mehrmals die vorherigen 31 Zeilen durchgegangen und hab keinen einzigen Fehler feststellen können. Das sind die ersten 33 Zeilen: <html> <head></head> <body>
[Hilfe]Parse error: syntax error
10/27/2009 - Metin2 Private Server - 6 Replies
Also hab IS -Script per xampp on und beim einloggen kommt der fehler hier Parse error: syntax error, unexpected $end in C:\xampp\htdocs\default1.php on line 875 Help pls Thx Freaky



All times are GMT +1. The time now is 07:42.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.