Jump to content

Recommended Posts

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

i have ediit the star_postion.cpp

In file included from start_position.cpp:2:
./start_position.h:62:16: error: use of undeclared identifier 'JOB_WOLFMAN'
                return (j == JOB_WOLFMAN) ? g_wolfman_create_position[e][0] : g_create_position[e][0];
                             ^
./start_position.h:72:16: error: use of undeclared identifier 'JOB_WOLFMAN'
                return (j == JOB_WOLFMAN) ? g_wolfman_create_position[e][1] : g_create_position[e][1];
                             ^
2 errors generated.
 

 

start_pstition.h

#pragma once
#include "locale_service.h"

extern char g_nation_name[4][32];
extern DWORD g_start_position[4][2];
extern long g_start_map[4];
extern DWORD g_create_position[4][2];
extern DWORD g_create_position_canada[4][2];
extern DWORD g_wolfman_create_position[4][2];


inline const char* EMPIRE_NAME( BYTE e)
{
    return LC_TEXT(g_nation_name[e]);
}

inline DWORD EMPIRE_START_MAP(BYTE e)
{
    return g_start_map[e];
}

inline DWORD EMPIRE_START_X(BYTE e)
{
    if (1 <= e && e <= 3)
        return g_start_position[e][0];

    return 0;
}

inline DWORD EMPIRE_START_Y(BYTE e)
{
    if (1 <= e && e <= 3)
        return g_start_position[e][1];

    return 0;
}

inline DWORD CREATE_START_X(BYTE e)
{
    if (1 <= e && e <= 3)
    {
        return g_create_position[e][0];
    }

    return 0;
}

inline DWORD CREATE_START_Y(BYTE e)
{
    if (1 <= e && e <= 3)
    {
        return g_create_position[e][1];
    }

    return 0;
}

inline DWORD CREATE_START_X(BYTE e, BYTE j)
{
    if (1 <= e && e <= 3)
    {
        return (j == JOB_WOLFMAN) ? g_wolfman_create_position[e][0] : g_create_position[e][0];
    }

    return 0;
}

inline DWORD CREATE_START_Y(BYTE e, BYTE j)
{
    if (1 <= e && e <= 3)
    {
        return (j == JOB_WOLFMAN) ? g_wolfman_create_position[e][1] : g_create_position[e][1];
    }

    return 0;
}
 

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.