Jump to content

  •  

Lordy

Member Since 22 Sep 2013
Offline Last Active Oct 09 2014 09:06 AM
-----

Posts I've Made

In Topic: @aura patch

01 October 2013 - 11:37 AM

Hi. I got errors when compiling using latest hercules rev.

 

 

..srcmapatcommand.c(8057): error C2065: 'message' : undeclared identifier
..srcmapatcommand.c(8057): error C2065: 'message' : undeclared identifier
..srcmapatcommand.c(8057): error C2100: illegal indirection
..srcmapatcommand.c(8057): error C2065: 'message' : undeclared identifier
..srcmapatcommand.c(8057): warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int'
..srcmapatcommand.c(8057): warning C4024: 'sscanf' : different types for formal and actual parameter 1
..srcmapatcommand.c(8058): error C2065: 'message' : undeclared identifier
..srcmapatcommand.c(8058): error C2065: 'message' : undeclared identifier
..srcmapatcommand.c(8058): error C2100: illegal indirection
..srcmapatcommand.c(8058): error C2065: 'message' : undeclared identifier
..srcmapatcommand.c(8058): warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int'
..srcmapatcommand.c(8058): warning C4024: 'sscanf' : different types for formal and actual parameter 1
..srcmapatcommand.c(8059): error C2065: 'fd' : undeclared identifier
..srcmapatcommand.c(8064): error C2065: 'sd' : undeclared identifier
..srcmapatcommand.c(8064): warning C4047: '=' : 'map_session_data *' differs in levels of indirection from 'int'
..srcmapatcommand.c(8067): error C2065: 'sd' : undeclared identifier
..srcmapatcommand.c(8067): warning C4047: '!=' : 'map_session_data *' differs in levels of indirection from 'int'
..srcmapatcommand.c(8074): error C2065: 'fd' : undeclared identifier
..srcmapatcommand.c(9798): error C2065: 'atcommand_aura' : undeclared identifier
..srcmapatcommand.c(9798): warning C4047: 'initializing' : 'AtCommandFunc' differs in levels of indirection from 'int'

 

Hope someone can help me with this thanks!!!!

 

 

try This

atcommand.h+ /*==========================================+ * Auras personalizadas+ *------------------------------------------*/+ACMD(aura)+{+	   struct map_session_data *pl_sd = 0;+	   int type = 0;++	   if (!message || !*message || sscanf(message, "%d %[^n]", &type, atcmd_player_name) < 2)+	   {+			   if (!message || !*message || sscanf(message, "%d", &type) < 1)+			   {+					   clif->message(fd, "Please, enter at least an option (usage: @aura  ).");+					   return -1;+			   }++			   atcmd_player_name[0] = 0;+			   pl_sd = sd;+	   }++	   if( pl_sd != sd )+	   {+			   if ((pl_sd = map_nick2sd(atcmd_player_name)) == NULL)+					   return -1;+	   }++	   sprintf(atcmd_output, "Current Aura: %d", pl_sd->status.aura);+	   clif->message(fd, atcmd_output);++	   pl_sd->status.aura = type;+	   pc_setglobalreg(pl_sd,"USERAURA",type);++	   pc_setpos(pl_sd, pl_sd->mapindex, pl_sd->bl.x, pl_sd->bl.y, 3);++	   return 0;+}