Jump to content
  • 0

Atcommand.c error


WhatFT

Question


  • Group:  Members
  • Topic Count:  142
  • Topics Per Day:  0.03
  • Content Count:  511
  • Reputation:   7
  • Joined:  02/15/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  169
  • Topics Per Day:  0.04
  • Content Count:  1260
  • Reputation:   750
  • Joined:  11/19/11
  • Last Seen:  

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"

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  142
  • Topics Per Day:  0.03
  • Content Count:  511
  • Reputation:   7
  • Joined:  02/15/12
  • Last Seen:  

But my main town is Belagio =/

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  319
  • Reputation:   198
  • Joined:  11/14/11
  • Last Seen:  

What revision are you using?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  713
  • Reputation:   70
  • Joined:  11/08/11
  • Last Seen:  

seems like you don't have declared MAP_BELAGIO in src/common/mapindex.h

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  142
  • Topics Per Day:  0.03
  • Content Count:  511
  • Reputation:   7
  • Joined:  02/15/12
  • Last Seen:  

I already put the map_belagio in src/common/mapindex.h

Can anyone show me a fixed structure? =/

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  713
  • Reputation:   70
  • Joined:  11/08/11
  • Last Seen:  

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?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  142
  • Topics Per Day:  0.03
  • Content Count:  511
  • Reputation:   7
  • Joined:  02/15/12
  • Last Seen:  

@EvilPuncker

I'll try that, thank you responding :)

@Earthlingz

I've used that but It gives me error.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  713
  • Reputation:   70
  • Joined:  11/08/11
  • Last Seen:  

don't forget to use make clean before

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  142
  • Topics Per Day:  0.03
  • Content Count:  511
  • Reputation:   7
  • Joined:  02/15/12
  • Last Seen:  

Thanks guys ! SOLVED!

Link to comment
Share on other sites

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.

×
×
  • Create New...