WhatFT Posted April 22, 2012 Posted April 22, 2012 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.. Quote
Ind Posted April 22, 2012 Posted April 22, 2012 replace MAP_BELAGIO for the actual map name within quotes, e.g. if you wanted it to be prtg_cast01 it should be "prtg_cas01" Quote
EvilPuncker Posted April 22, 2012 Posted April 22, 2012 seems like you don't have declared MAP_BELAGIO in src/common/mapindex.h 1 Quote
WhatFT Posted April 22, 2012 Author Posted April 22, 2012 I already put the map_belagio in src/common/mapindex.h Can anyone show me a fixed structure? =/ Quote
EvilPuncker Posted April 22, 2012 Posted April 22, 2012 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? Quote
WhatFT Posted April 22, 2012 Author Posted April 22, 2012 @EvilPuncker I'll try that, thank you responding @Earthlingz I've used that but It gives me error. Quote
Question
WhatFT
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.