Jump to content
Sign in to follow this  
sparkle

@battleinfo

Recommended Posts

Hola, al intentar agregar @battleinfo la consola de compilación me esta tirando errores necesito ayuda, dejo detalles.

 

archivo: atcommand.c

ACMD_FUNC(battleinfo)
{
	if( sd->state.battleinfo )
	{
		clif_displaymessage(fd, "- Battle Information Display OFF - Kill/Death -");
		sd->state.battleinfo = 0;
	}
	else
	{
		clif_displaymessage(fd, "- Battle Information Display ON - Kill/Death -");
		sd->state.battleinfo = 1;
	}
	return 0;
}

 

archivo: pc.c

	if( ssd->state.battleinfo )
	{
		sprintf(output,"( You Kill the %s [%s] using <%s> )", job_name(tsd->status.class_), tsd->status.name, ( skill_id ? skill_get_desc(skill_id) : "Melee/Reflect/Effect" ));
		clif_disp_onlyself(ssd,output,strlen(output));
	}
	if( tsd->state.battleinfo )
	{
		sprintf(output,"( The %s [%s] kill you using <%s> )", job_name(ssd->status.class_), ssd->status.name, ( skill_id ? skill_get_desc(skill_id) : "Melee/Reflect/Effect" ));
		clif_disp_onlyself(tsd,output,strlen(output));
	}
}

 

archivo: pc.h

unsigned int battleinfo : 1;

 

Estos son los errores que aparecen en la consola
 

		    16>c:\users\user\desktop\ragnarok\rathena-master\src\map\pc.cpp(325): error C2059: error de sintaxis: 'if' [C:\Use
       rs\user\Desktop\Ragnarok\rathena-master\src\map\map-server.vcxproj]
    16>c:\users\user\desktop\ragnarok\rathena-master\src\map\pc.cpp(326): error C2143: error de sintaxis: falta ';' de
       lante de '{' [C:\Users\user\Desktop\Ragnarok\rathena-master\src\map\map-server.vcxproj]
    16>c:\users\user\desktop\ragnarok\rathena-master\src\map\pc.cpp(326): error C2447: '{': falta el encabezado de fun
       ción (¿lista formal de estilo anterior?) [C:\Users\user\Desktop\Ragnarok\rathena-master\src\map\map-server.vcxp
       roj]
    16>c:\users\user\desktop\ragnarok\rathena-master\src\map\pc.cpp(330): error C2059: error de sintaxis: 'if' [C:\Use
       rs\user\Desktop\Ragnarok\rathena-master\src\map\map-server.vcxproj]
    16>c:\users\user\desktop\ragnarok\rathena-master\src\map\pc.cpp(331): error C2143: error de sintaxis: falta ';' de
       lante de '{' [C:\Users\user\Desktop\Ragnarok\rathena-master\src\map\map-server.vcxproj]
    16>c:\users\user\desktop\ragnarok\rathena-master\src\map\pc.cpp(331): error C2447: '{': falta el encabezado de fun
       ción (¿lista formal de estilo anterior?) [C:\Users\user\Desktop\Ragnarok\rathena-master\src\map\map-server.vcxp
       roj]
    16>Compilación del proyecto terminada "C:\Users\user\Desktop\Ragnarok\rathena-master\src\map\map-server.vcxproj" (
       destinos predeterminados) -- ERROR.
     5>Compilación del proyecto terminada "C:\Users\user\Desktop\Ragnarok\rathena-master\src\map\map-server.vcxproj.me
       taproj" (destinos predeterminados) -- ERROR.
     1>Compilación del proyecto terminada "C:\Users\user\Desktop\Ragnarok\rathena-master\rAthena.sln" (destinos predet
       erminados) -- ERROR.

ERROR al compilar.

       "C:\Users\user\Desktop\Ragnarok\rathena-master\rAthena.sln" (destino predeterminado) (1) ->
       "C:\Users\user\Desktop\Ragnarok\rathena-master\src\map\map-server.vcxproj.metaproj" (destino predeterminado) (5
       ) ->
       "C:\Users\user\Desktop\Ragnarok\rathena-master\src\map\map-server.vcxproj" (destino predeterminado) (16) ->
       (ClCompile destino) ->
         c:\users\user\desktop\ragnarok\rathena-master\src\map\pc.cpp(325): error C2059: error de sintaxis: 'if' [C:\U
       sers\user\Desktop\Ragnarok\rathena-master\src\map\map-server.vcxproj]
         c:\users\user\desktop\ragnarok\rathena-master\src\map\pc.cpp(326): error C2143: error de sintaxis: falta ';'
       delante de '{' [C:\Users\user\Desktop\Ragnarok\rathena-master\src\map\map-server.vcxproj]
         c:\users\user\desktop\ragnarok\rathena-master\src\map\pc.cpp(326): error C2447: '{': falta el encabezado de f
       unción (¿lista formal de estilo anterior?) [C:\Users\user\Desktop\Ragnarok\rathena-master\src\map\map-server.vc
       xproj]
         c:\users\user\desktop\ragnarok\rathena-master\src\map\pc.cpp(330): error C2059: error de sintaxis: 'if' [C:\U
       sers\user\Desktop\Ragnarok\rathena-master\src\map\map-server.vcxproj]
         c:\users\user\desktop\ragnarok\rathena-master\src\map\pc.cpp(331): error C2143: error de sintaxis: falta ';'
       delante de '{' [C:\Users\user\Desktop\Ragnarok\rathena-master\src\map\map-server.vcxproj]
         c:\users\user\desktop\ragnarok\rathena-master\src\map\pc.cpp(331): error C2447: '{': falta el encabezado de f
       unción (¿lista formal de estilo anterior?) [C:\Users\user\Desktop\Ragnarok\rathena-master\src\map\map-server.vc
       xproj]

    0 Advertencia(s)
    6 Errores

 

Edited by sparkle

Share this post


Link to post
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
Reply to this topic...

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

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.