WhatFT Posted April 22, 2012 Group: Members Topic Count: 142 Topics Per Day: 0.03 Content Count: 511 Reputation: 7 Joined: 02/15/12 Last Seen: April 11, 2014 Share 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 Link to comment Share on other sites More sharing options...
Ind Posted April 22, 2012 Group: Members Topic Count: 169 Topics Per Day: 0.03 Content Count: 1260 Reputation: 750 Joined: 11/19/11 Last Seen: April 11, 2013 Share 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 Link to comment Share on other sites More sharing options...
WhatFT Posted April 22, 2012 Group: Members Topic Count: 142 Topics Per Day: 0.03 Content Count: 511 Reputation: 7 Joined: 02/15/12 Last Seen: April 11, 2014 Author Share Posted April 22, 2012 But my main town is Belagio =/ Quote Link to comment Share on other sites More sharing options...
Rytech Posted April 22, 2012 Group: Members Topic Count: 27 Topics Per Day: 0.01 Content Count: 319 Reputation: 199 Joined: 11/14/11 Last Seen: December 24, 2024 Share Posted April 22, 2012 What revision are you using? Quote Link to comment Share on other sites More sharing options...
EvilPuncker Posted April 22, 2012 Group: Members Topic Count: 19 Topics Per Day: 0.00 Content Count: 713 Reputation: 71 Joined: 11/08/11 Last Seen: December 25, 2024 Share Posted April 22, 2012 seems like you don't have declared MAP_BELAGIO in src/common/mapindex.h 1 Quote Link to comment Share on other sites More sharing options...
WhatFT Posted April 22, 2012 Group: Members Topic Count: 142 Topics Per Day: 0.03 Content Count: 511 Reputation: 7 Joined: 02/15/12 Last Seen: April 11, 2014 Author Share Posted April 22, 2012 I already put the map_belagio in src/common/mapindex.h Can anyone show me a fixed structure? =/ Quote Link to comment Share on other sites More sharing options...
EvilPuncker Posted April 22, 2012 Group: Members Topic Count: 19 Topics Per Day: 0.00 Content Count: 713 Reputation: 71 Joined: 11/08/11 Last Seen: December 25, 2024 Share 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 Link to comment Share on other sites More sharing options...
Earthlingz Posted April 22, 2012 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 187 Reputation: 35 Joined: 01/01/12 Last Seen: September 20, 2014 Share Posted April 22, 2012 or this http://rathena.org/wiki/@go 1 Quote Link to comment Share on other sites More sharing options...
WhatFT Posted April 22, 2012 Group: Members Topic Count: 142 Topics Per Day: 0.03 Content Count: 511 Reputation: 7 Joined: 02/15/12 Last Seen: April 11, 2014 Author Share Posted April 22, 2012 @EvilPuncker I'll try that, thank you responding @Earthlingz I've used that but It gives me error. Quote Link to comment Share on other sites More sharing options...
EvilPuncker Posted April 22, 2012 Group: Members Topic Count: 19 Topics Per Day: 0.00 Content Count: 713 Reputation: 71 Joined: 11/08/11 Last Seen: December 25, 2024 Share Posted April 22, 2012 don't forget to use make clean before Quote Link to comment Share on other sites More sharing options...
WhatFT Posted April 24, 2012 Group: Members Topic Count: 142 Topics Per Day: 0.03 Content Count: 511 Reputation: 7 Joined: 02/15/12 Last Seen: April 11, 2014 Author Share Posted April 24, 2012 Thanks guys ! SOLVED! Quote Link to comment Share on other sites More sharing options...
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..
Link to comment
Share on other sites
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.