Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 02:24

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

Advertisement



Really Need Help Score System

Discussion on Really Need Help Score System within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
WooTheFck's Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 239
Received Thanks: 11
Really Need Help Score System

what is the problem with this code

MoverRender.cpp

Code:
#ifdef __ARENA_SCORE
            //Arena Score
        if( GetWorld()->IsArena() && !strcmp( m_szName , g_ArenaScore.m_vecUserInfo[0].szName) )
        {
                    pTexture = g_Neuz.m_pHeroIconArena;
                    if( pTexture )
                    {
                        long oldpointx=point.x;
                        long oldpointy=point.y;
                        point.y -= pTexture->m_size.cy + 5;
                        point.y = point.y+1;
                        //point.x = point.x + 15;
                        if(pGuild==NULL)
                        {
                            point.x -= cs1.cx + 27;    
                        }
                        else
                        {
                            if( cs1.cx > cs2.cx )
                            {
                                if(this->GetGuild()->m_dwLogo!=NULL)
                                {
                                    point.x -= cs1.cx + 52;    
                                }
                                else
                                {
                                    point.x -= cs1.cx + 27;    
                                }
                            }
                            else
                            {
                                if(this->GetGuild()->m_dwLogo!=NULL)
                                {
                                    point.x -= cs2.cx + 52;    
                                }
                                else
                                {
                                    point.x -= cs2.cx + 27;    
                                }
                            }
                        }

                            pTexture->Render( &g_Neuz.m_2DRender, point );

                        point.x=oldpointx;
                        point.y=oldpointy;
                    }
            }
#endif

Error:
MoverRender.cpp(2260) : error C2059: syntax error : 'if'
MoverRender.cpp(2261) : error C2143: syntax error : missing ';' before '{'
MoverRender.cpp(2261) : error C2447: '{' : missing function header (old-style formal list?)
MoverRender.cpp(2428) : fatal error C1004: unexpected end of file found
WooTheFck is offline  
Old 06/08/2013, 18:18   #2
 
elite*gold: 0
Join Date: Oct 2012
Posts: 948
Received Thanks: 157
Try this one

PHP Code:
#ifdef __ARENA_SCORE
            //Arena Score
        
if( g_ArenaScore.m_vecUserInfo.size() ) 
            if( 
GetWorld()->IsArena() && !strcmpm_szName g_ArenaScore.m_vecUserInfo[0].szName) )
            {
                    
pTexture g_Neuz.m_pHeroIconArena;
                    if( 
pTexture )
                    {
                        
long oldpointx=point.x;
                        
long oldpointy=point.y;
                        
point.-= pTexture->m_size.cy 5;
                        
point.point.y+1;
                        
//point.x = point.x + 15;
                        
if(pGuild==NULL)
                        {
                            
point.-= cs1.cx 27;    
                        }
                        else
                        {
                            if( 
cs1.cx cs2.cx )
                            {
                                if(
this->GetGuild()->m_dwLogo!=NULL)
                                {
                                    
point.-= cs1.cx 52;    
                                }
                                else
                                {
                                    
point.-= cs1.cx 27;    
                                }
                            }
                            else
                            {
                                if(
this->GetGuild()->m_dwLogo!=NULL)
                                {
                                    
point.-= cs2.cx 52;    
                                }
                                else
                                {
                                    
point.-= cs2.cx 27;    
                                }
                            }
                        }

                            
pTexture->Render( &g_Neuz.m_2DRenderpoint );

                        
point.x=oldpointx;
                        
point.y=oldpointy;
                    }
            }
#endif 
raventh1984 is offline  
Thanks
1 User
Old 06/08/2013, 18:29   #3
 
WooTheFck's Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 239
Received Thanks: 11
same error i got sir

MoverRender.cpp(2335) : error C2059: syntax error : 'if'
MoverRender.cpp(2337) : error C2143: syntax error : missing ';' before '{'
MoverRender.cpp(2337) : error C2447: '{' : missing function header (old-style formal list?)
WooTheFck is offline  
Old 06/08/2013, 18:32   #4

 
elite*gold: 142
Join Date: Apr 2010
Posts: 859
Received Thanks: 428
afaik:

after
Code:
if( g_ArenaScore.m_vecUserInfo.size() )
the "{" is missing.

Add in the line a { and above the
Code:
#endif
add an }
İross is offline  
Thanks
1 User
Old 06/08/2013, 18:33   #5
 
elite*gold: 4
Join Date: Mar 2010
Posts: 3,148
Received Thanks: 1,535
can u post line 2235 ?
Jopsi332 is offline  
Thanks
1 User
Old 06/08/2013, 18:33   #6
 
elite*gold: 0
Join Date: Oct 2012
Posts: 948
Received Thanks: 157
What do you have above the #ifdef __ARENA_SCORE

Quote:
Originally Posted by İross View Post
afaik:

after
Code:
if( g_ArenaScore.m_vecUserInfo.size() )
the "{" is missing.

Add in the line a { and above the
Code:
#endif
add an }

Nope i have the same setup and mine is function correctly.

So he must have something else instead.
raventh1984 is offline  
Thanks
1 User
Old 06/08/2013, 18:36   #7

 
elite*gold: 142
Join Date: Apr 2010
Posts: 859
Received Thanks: 428
@raventh ah okay
(I know it only from PHP ..^^)

@Jopsi Du meinst wohl Zeile 2335
İross is offline  
Old 06/08/2013, 18:39   #8
 
WooTheFck's Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 239
Received Thanks: 11
@jopsi here the 2235 line

CRect rect( point.x - 2, point.y - 2, point.x + nGaugeWidth + 2, point.y + 5 + 2);

this the 2335
if( g_ArenaScore.m_vecUserInfo.size() )
WooTheFck is offline  
Old 06/08/2013, 18:45   #9
 
elite*gold: 0
Join Date: Oct 2012
Posts: 948
Received Thanks: 157
Ill bet he has it missed placed in the file

I have it after this

PHP Code:
CTexturepTexture;
        
CString strPath;
        
CSize cs1 pFont->GetTextExtentszName );
        
CSize cs2;
        
        if(
pGuild != NULL)
        {
            
cs2 pFont->GetTextExtentpGuild->m_szGuild );

            if( 
cs1.cx cs2.cx )
                
point.+= cs1.cx 2;
            else
                
point.+= cs2.cx 2;
        }
        else
            
point.+= cs1.cx 2
Then
PHP Code:
#ifdef __ARENA_SCORE
            //Arena Score
        
if( g_ArenaScore.m_vecUserInfo.size() ) 
            if( 
GetWorld()->IsArena() && !strcmpm_szName g_ArenaScore.m_vecUserInfo[0].szName) ) 
Etc.
raventh1984 is offline  
Thanks
1 User
Old 06/08/2013, 18:52   #10
 
WooTheFck's Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 239
Received Thanks: 11
@ sir Raventh

ross is correct i miss { } i success to rebuild the neuz but i dont think if my server will be crash
WooTheFck is offline  
Old 06/08/2013, 19:14   #11
 
elite*gold: 0
Join Date: Oct 2012
Posts: 948
Received Thanks: 157
Its an bit strange tough cause i use that what i did give you and i dont have problems with it.

So that means that you placed it at an different section then me.

But good that its solved.
raventh1984 is offline  
Old 06/08/2013, 19:24   #12
 
WooTheFck's Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 239
Received Thanks: 11
but i use the code that you're gave to me and the place the code that you are say to me and no error comes,

the only problem that i've got on my worldserver :


i think same as you said --wrong place
WooTheFck is offline  
Reply


Similar Threads Similar Threads
[GOH]Arena Score System Problem
06/04/2013 - Flyff Private Server - 0 Replies
I notice that when i go to arena there's no score board i only change the arena map. i also execute the 3 database of arena score .here's the picture. http://imageshack.us/photo/my-images/547/scoreboa rdv.png/ http://imageshack.us/photo/my-images/13/scoreboar d2.png/
[TUT]Arena Score System
04/24/2013 - Flyff PServer Guides & Releases - 50 Replies
DPClient.cpp unter #include "Environment.h" Das #ifdef __SCORE_PVP #include "ArenaScoreClient.h" extern CArenaScore g_ArenaScore; #endif Unter
[Request] Arena Score System 1.2 Package
01/27/2013 - Flyff Private Server - 0 Replies
sir please re-upload arena score system package please... Arena Score 1.2 the filename is ArenaCore.rar please re-upload :( Sorry for my bad English
Arena score system
05/01/2012 - Flyff Private Server - 3 Replies
I added arena score to my source and compile with 0 errors but when I'm in game and enter arena it crashes my neuz. has any one else had this happen, can any one help me out? thanks in advance 2012/ 4/19 23:16:24 DPClient::OnReplace BEGIN 2012/ 4/19 23:16:26 DPClient::OnReplace END OK
The Devils Catacomb Score System
12/21/2011 - Metin2 PServer Guides & Strategies - 19 Replies
Hi Friends ! A new quest.. The Devil's Catacomb Score System.. ------------------- -- TheRestroyer TM



All times are GMT +1. The time now is 02:25.


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.