[Ayuda] Comando. Warnings.
#1

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.
Reply
#2

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.
Reply
#3

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)