Jump to content
  • 0

Atcommand.c error


Question

Posted

I/usr/include -c -o obj_sql/atcommand.o atcommand.c

atcommand.c: In function âatcommand_goâ:

atcommand.c:2297: error: âMAP_BELAGIOâ undeclared (first use in this function)

atcommand.c:2297: error: (Each undeclared identifier is reported only once

atcommand.c:2297: error: for each function it appears in.)

atcommand.c:9403:2: warning: no newline at end of file

make[1]: *** [obj_sql/atcommand.o] Error 1

make[1]: Leaving directory <I REMOVED THIS>

make: *** [map_sql] Error 2

Recompile failed. Please check again.

How can I fix this? =/ I want to setup the @go command but everytime i change it, it shows this..

10 answers to this question

Recommended Posts

Posted

add this in mapindex.h

#define MAP_BELAGIO "belagio"

in atcommand.c

below

{ MAP_ECLAGE, 110, 39 }, // 35=Eclage

add

{ MAP_BELAGIO, 110, 39 }, // 36=Belagio

below

} else if (strncmp(map_name, "eclage", 3) == 0) {

town = 35;

}

add

} else if (strncmp(map_name, "belagio", 3) == 0) {

town = 36;

}

recompile & profit?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...