Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 13:25

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

Advertisement



[Help] With This code

Discussion on [Help] With This code within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2013
Posts: 97
Received Thanks: 4
[Help] With This code

is there any problem with this code
because i got this error
D:\Files\Files\Official Source\_Common\World3D.cpp(1462): error C2059: syntax error : '{'
D:\Files\MyFutureFiles\Official Source\_Common\World3D.cpp(1462): error C2143: syntax error : missing ';' before '}'
D:\Files\MyFutureFiles\Official Source\_Common\World3D.cpp(1462): error C2059: syntax error : '{'

someone can help me im using vs 2008
teejayu1 is offline  
Old 08/08/2017, 06:34   #2
 
iSynaptic's Avatar
 
elite*gold: 0
Join Date: Sep 2011
Posts: 195
Received Thanks: 65
You should read some informative books about c++ syntax because its horrible what you are doing there.

1. You shouldnt call the class directly. Initialize it before and use it like pWorld->Function/member
2. never set a vector with Bracktes ( {} )
3. v1 == D3DXVECTOR3( v2.x + 5, g_WndMng.m_pTheme->m_pTitleWorld->GetLandHeight(v2.x, v2.z), v2.z );
4. v2 = CWorld::m_pCamera->m_vPos;;

Anyways... even if the syntax is correct, I guess you wont have much success with this code.
iSynaptic is offline  
Old 08/08/2017, 07:08   #3
 
elite*gold: 0
Join Date: Jun 2017
Posts: 46
Received Thanks: 29
initialize the D3DXVECTOR3 using the normal initialization with x, y, z. or upgrade to C++11 to support the {} initialization.

Quote:
Originally Posted by iSynaptic View Post
You should read some informative books about c++ syntax because its horrible what you are doing there.

1. You shouldnt call the class directly. Initialize it before and use it like pWorld->Function/member
2. never set a vector with Bracktes ( {} )
3. v1 == D3DXVECTOR3( v2.x + 5, g_WndMng.m_pTheme->m_pTitleWorld->GetLandHeight(v2.x, v2.z), v2.z );
4. v2 = CWorld::m_pCamera->m_vPos;;

Anyways... even if the syntax is correct, I guess you wont have much success with this code.
CWorld::m_pCamera is a static member. can be done like this just fine since it is just user's client information. Anyway, he didn't do that, official servers did. Could do g_pPlayer->GetWorld() or CWorld* pWorld = g_WorldMng.Get(); if it really triggers you that much.

Bracket initialization isn't bad in any way. Books? The C++ Programming Language 4th Edition by Bjarne Stroustrup. It's just copy-list initialization with a struct. xd
Hekmatyar is offline  
Old 08/08/2017, 07:55   #4
 
iSynaptic's Avatar
 
elite*gold: 0
Join Date: Sep 2011
Posts: 195
Received Thanks: 65
Quote:
Originally Posted by Hekmatyar View Post
initialize the D3DXVECTOR3 using the normal initialization with x, y, z. or upgrade to C++11 to support the {} initialization.
VS2008 is targeting C++08, why adding C++ 11 to support copy-list initialization?
Afaik the VS08 Compiler doesn't even support C++11.

Quote:
Originally Posted by Hekmatyar View Post
Bracket initialization isn't bad in any way. Books? The C++ Programming Language 4th Edition by Bjarne Stroustrup. It's just copy-list initialization with a struct. xd
Yea, i didn't knew the proper name of this initialization but i can remember that copy-list-initialization will cause problems because copy initialization considers availability of copy constructors, while copy-list-initialization don't (especially on explicit).

Anyways - as non cpp experienced developer he should stay with the common syntax. It helped me much to learn from the code when i started while other stackoverflow/c++ sources didn't helped much on this.
iSynaptic is offline  
Old 08/08/2017, 09:53   #5
 
elite*gold: 0
Join Date: Jul 2016
Posts: 230
Received Thanks: 7
try to debug it ^^
elitemember21 is offline  
Reply


Similar Threads Similar Threads
Waffen Code´s - Premium Code´s - Dinar Code´s [VERKAUFBAR] ! ! !
03/10/2011 - WarRock Trading - 3 Replies
Hallo Leute , ich verkaufe Code´s . Die Code´s werde ich jetzt darunter hinschreiben und ihr könnt euch bei mir melden 50 % Günstiger Als WarRock Marketplace . 1.Waffen Code´s >>> G36 Code Xm8 Code Javelin Code Mp7a1 Code Famas Retail Code G36 Retail Code
Waffen Code´s - Premium Code´s - Dinar Code´s [VERKAUFBAR] ! ! !
03/10/2011 - WarRock Trading - 9 Replies
Waffen Code´s - Premium Code´s - Dinar Code´s ! ! ! Hallo Leute , ich verkaufe Code´s . Die Code´s werde ich jetzt darunter hinschreiben und ihr könnt euch bei mir melden 50 % Günstiger Als WarRock Marketplace . 1.Waffen Code´s >>> G36 Code Xm8 Code Javelin Code
°°xm8 code°°katana code°° Javelin code°°
12/21/2010 - WarRock Trading - 0 Replies
Habe Codes Bei Intresse bitte in Skype adden: war.rock.16 Ich will dafür nur psc reste ;D:D
B> DriftCity CBS Code | S> War Rock Code / Bounty Bay Code etc.
10/05/2010 - Trading - 1 Replies
Hi, wie schon im Titel beschrieben. In der CBS vom November gab es Bonusodes für mehrere Spiele. Ich benötige DriftCity Codes. Kann sonst für alle anderen Spiele die Codes biten, einige auch doppelt. Hier eine Liste der Spiele und Bonusaktionen: - (2x) War Rock - (2x) War of Titans - (2x) World of Warcraft - (1x) Warhammer Online - (1x) Bounty Bay online
help help help help help help
06/28/2009 - Say Hello - 0 Replies
how i can dowmload Mangos 6385 ??????????????????????????????????? please give me the limk i can't see that i know it is in www.elitepvpers.com/.../153716-release-mangos-relea ses-blackscorpian-win32-2-4-3-a.html - but give me link sent it to my email plz



All times are GMT +1. The time now is 13:29.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.