SA-MP Forums Archive
[Ayuda] Comando. Warnings. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: [Ayuda] Comando. Warnings. (/showthread.php?tid=569576)



[Ayuda] Comando. Warnings. - FelipeMancilla - 31.03.2015

Hola. Utilizo la GM de ZC. Y pues quiero borrar el comando /tlc
Код:
zcmd(tlc, playerid, params[])
    {
        if(Team_LSPD(playerid))
        {
        	if(pdtrace == 0 || pdtrace_x == 0 || pdtrace_y == 0 || pdtrace_z == 0)
         	{
                SendClientMessageEx(playerid, 0xFF8080FF, ">><<>><<>> Estableciendo contacto ... >><<>><<>>");
	            SendClientMessageEx(playerid, COLOR_WHITE, "GPS: Servicio no Disponible");
				//SetPlayerCheckpoint(playerid,pdtrace_x,pdtrace_y,pdtrace_z,8.0);
	        }
	        else SendClientMessageEx(playerid, COLOR_WHITE, "Error en la localizacion de la persona que llama.");
		}
	    else if(Team_SAMD(playerid))
        {
        	if(emdtrace == 0 || emdtrace_x == 0 || emdtrace_y == 0 || emdtrace_z == 0)
         	{
	            SendClientMessageEx(playerid, COLOR_WHITE, "GPS: Servicio no Disponible");
				//SetPlayerCheckpoint(playerid,emdtrace_x,emdtrace_y,emdtrace_z,8.0);
	        } else SendClientMessageEx(playerid, COLOR_WHITE, "Error al localizar!");
		} else SendClientMessageEx(playerid, COLOR_WHITE, "[ERROR]: No tienes autorizaciуn a usar este comando.");
        return 1;
    }
Pero, cuando borro el cуdigo. Me arroja estos warnings.
ZenonCity.net.pwn(45293) : warning 204: symbol is assigned a value that is never used: "emdtrace"
ZenonCity.net.pwn(45293) : warning 204: symbol is assigned a value that is never used: "emdtrace_x"
ZenonCity.net.pwn(45293) : warning 204: symbol is assigned a value that is never used: "emdtrace_y"
ZenonCity.net.pwn(45293) : warning 204: symbol is assigned a value that is never used: "emdtrace_z"
ZenonCity.net.pwn(45341) : warning 204: symbol is assigned a value that is never used: "pdtrace"
ZenonCity.net.pwn(45341) : warning 204: symbol is assigned a value that is never used: "pdtrace_x"
ZenonCity.net.pwn(45341) : warning 204: symbol is assigned a value that is never used: "pdtrace_y"
ZenonCity.net.pwn(45341) : warning 204: symbol is assigned a value that is never used: "pdtrace_z"


Y fui a esas 2 lнneas. Y estб esto:
emdtrace = 1; emdtrace_x = trace_x; emdtrace_y = trace_y; emdtrace_z = trace_z;
pdtrace = 1; pdtrace_x = trace_x; pdtrace_y = trace_y; pdtrace_z = trace_z;

Por favor ayuda.


Re: [Ayuda] Comando. Warnings. - Choidito - 31.03.2015

Las lнneas que te mandan warning borralas "OJO" , has una copia de seguridad porciaxaso , te manda esos warning yabque esta definiendo algo que eliminaste del comando.


Respuesta: [Ayuda] Comando. Warnings. - Juance - 31.03.2015

Son variables que no estбn siendo usadas en el gm.


Re: [Ayuda] Comando. Warnings. - Toolkit - 31.03.2015

Al sнmbolo se le asigna un valor que nunca se utiliza.

Borra todas esas variables del GameMod y prueba, seguro se te solucioanara.

Saludos