Jump to content
  • 0

atcommand.c error,


Rain408

Question


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  77
  • Reputation:   0
  • Joined:  05/23/15
  • Last Seen:  

I messed up my atcommand.c trying to add a new command. 

So i went on github to get the atcommand.c file there.

 

https://github.com/rathena/rathena/blob/master/src/map/atcommand.c

 

then i went to recompile my files on putty and ran into this error.

 

atcommand.c:3255: error: ‘MAX_SKILL_ID’ undeclared (first use in this function)
atcommand.c:3255: error: (Each undeclared identifier is reported only once
atcommand.c:3255: error: for each function it appears in.)
atcommand.c:3268: error: ‘ADDSKILL_PERMANENT’ undeclared (first use in this function)
atcommand.c: In function ‘atcommand_reload’:
atcommand.c:3835: error: too many arguments to function ‘packetdb_readdb’
atcommand.c:3838: warning: implicit declaration of function ‘instance_reload’
atcommand.c: In function ‘atcommand_mapinfo’:
atcommand.c:3957: error: request for member ‘count’ in something not a structure or union
atcommand.c:3960: error: request for member ‘count’ in something not a structure or union
atcommand.c:3963: error: request for member ‘entries’ in something not a structure or union
atcommand.c:3964: error: request for member ‘entries’ in something not a structure or union
atcommand.c:3965: error: request for member ‘entries’ in something not a structure or union
atcommand.c:3966: error: request for member ‘entries’ in something not a structure or union
atcommand.c:3967: error: request for member ‘entries’ in something not a structure or union
atcommand.c:3968: error: request for member ‘entries’ in something not a structure or union
atcommand.c: In function ‘atcommand_cleargstorage’:
atcommand.c:5438: warning: implicit declaration of function ‘gstorage_get_storage’
atcommand.c:5438: warning: assignment makes pointer from integer without a cast
atcommand.c:5443: error: ‘struct guild_storage’ has no member named ‘opened’
atcommand.c:5444: error: ‘struct guild_storage’ has no member named ‘opened’
atcommand.c:5446: warning: implicit declaration of function ‘gstorage_storageclose’
atcommand.c:5450: error: ‘struct guild_storage’ has no member named ‘locked’
atcommand.c:5452: warning: implicit declaration of function ‘gstorage_delitem’
atcommand.c:5455: error: ‘struct guild_storage’ has no member named ‘locked’
atcommand.c: In function ‘atcommand_skillid’:
atcommand.c:5512: error: invalid type argument of ‘->’
atcommand.c:5513: error: invalid type argument of ‘->’
atcommand.c:5515: error: invalid type argument of ‘->’
atcommand.c:5516: error: invalid type argument of ‘->’
atcommand.c: In function ‘atcommand_useskill’:
atcommand.c:5564: warning: implicit declaration of function ‘SKILL_CHK_HOMUN’
atcommand.c: In function ‘atcommand_skilltree’:
atcommand.c:5648: error: invalid type argument of ‘->’
atcommand.c: In function ‘getring’:
atcommand.c:5677: error: too many arguments to function ‘map_addflooritem’
atcommand.c: In function ‘atcommand_changesex’:
atcommand.c:6788: error: too many arguments to function ‘chrif_changesex’
atcommand.c: In function ‘atcommand_changecharsex’:
atcommand.c:6809: error: too many arguments to function ‘chrif_changesex’
atcommand.c: In function ‘atcommand_auction’:
atcommand.c:8401: warning: passing argument 1 of ‘clif_colormes’ makes pointer from integer without a cast
atcommand.c: In function ‘atcommand_set’:
atcommand.c:9010: warning: passing argument 2 of ‘pc_readregistry_str’ makes pointer from integer without a cast
atcommand.c:9012: warning: passing argument 2 of ‘pc_readregistry_str’ makes pointer from integer without a cast
atcommand.c:9015: warning: passing argument 2 of ‘pc_readregistry_str’ makes pointer from integer without a cast
atcommand.c:9039: warning: passing argument 2 of ‘pc_readregistry’ makes pointer from integer without a cast
atcommand.c:9041: warning: passing argument 2 of ‘pc_readregistry’ makes pointer from integer without a cast
atcommand.c:9044: warning: passing argument 2 of ‘pc_readregistry’ makes pointer from integer without a cast
atcommand.c: In function ‘atcommand_langtype’:
atcommand.c:9386: warning: passing argument 2 of ‘pc_setregistry’ makes pointer from integer without a cast
atcommand.c:10495:2: warning: no newline at end of file
make[1]: *** [obj/atcommand.o] Error 1
make[1]: Leaving directory `/root/trunk/src/map'
make: *** [map] Error 2
 
As noted, my atcommand.c file is exactly the same as on the link provide. I have no idea what the problem is

 

 

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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...