SA-MP Forums Archive
Error YSI - 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: Error YSI (/showthread.php?tid=526537)



Error YSI - Macklemore - 18.07.2014

Код:
local variable "s" shadows a variable at a preceding level
Necesito ayuda con esto, segъn leн esto es porque ya estб definida la variable "s" en mi gamemode. Pero no es asн, en esa linea solo estб esto
Код:
 }
La lнnea es esta:

Код:
						} //Linea 382



Respuesta: Error YSI - Swedky - 18.07.2014

Y podemos adivinar el cуdigo que estб junto a la llave?


Respuesta: Error YSI - Macklemore - 18.07.2014

Si, con tus poderes mentales zukulenthos. En verdad lo que dice es esto:

Код:
include\YSI\y_debug.inc(382) : warning 219: local variable "s" shadows a variable at a preceding level
El cуdigo en el gamemode es este:

Код:
public OnRconLoginAttempt(ip[], password[], success)
{
	if(RCONZ == 1)
	{
    	if(!success)
    	{
 			new p2[16]; new string[176];
    		foreach(Player, i)
			{
        		if(GetPVarInt(i, "AdminProtect") == 0)
				{
	    			GetPlayerIp(i, p2, sizeof(p2));
     				if(!strcmp(ip, p2, true))
	    			{
						GetPlayerName(i, ime, sizeof(ime));
	        			if(Pokusaji[i] != 3)
	        			{
							Pokusaji[i] ++;
							SendClientMessage(i,RED, "[ANTI TRAMPAS]: Contraseсa incorrecta ! Si la escribes mal mas de 3 veces, vas a ser baneado!!");
						}
						else
						{
							if(kikovan[i] == 0)
    						{
    			    			kikovan[i] = 1;
								GetPlayerName(i, ime, sizeof(ime));
								GetPlayerIp(i, ipadresa, sizeof(ipadresa));
								format(string, sizeof(string), "%s %s ha sido baneado por 3/3 advertencias por Mala contraseсa RCON",acime, ime);
								SendClientMessageToAll(RED, string);
								format(string2, sizeof(string2),"{CD0000}ЎBaneado!\n{FFF8DC}Nombres:{CD0000} %s\n{FFF8DC}Razуn:{CD0000} 3/3 Advertencias RCON\n{FFF8DC}IP:{CD0000} %s\n \n{CD0000}Si crees que fuiste kickeado sin razуn,\n presiona f8 y postealo en nuestros foros.\n Sitio web: %s",ime,ipadresa,forum);
								ShowPlayerDialog(i, 20000, DIALOG_STYLE_MSGBOX, "{FFF8DC}[ANTI TRAMPAS]",string2, "Ok", "");
								getdate(y,m,d);
								gettime(h,mi,s);
								format(string,sizeof(string), "[%d/%d/%d]-[%d:%d:%d] [ANTI TRAMPAS] ha baneado a %s por 3/3 RCON intentos fallidos de logueo en la RCON.",d,m,y,h,mi,s,ime);
								log(string);
								Ban(i);
							}
						}
	            	                 }
				}
        	        }
                }
	}
    return 1;
}



Respuesta: Error YSI - Swedky - 18.07.2014

El problema no viene de tu GM, viene de y_debug (mira la direcciуn del error).

Intenta descargando YSI 4.0 o 3.1.


Respuesta: Error YSI - Macklemore - 18.07.2014

Ya bajй puse todo en /includes/ y nada... mismo error


Re: Error YSI - Miguel - 18.07.2014

Declaraste "s" en algъn lugar porque la estбs usando en gettime. Simplemente declara esa misma "s" como "seg", y obviamente usas seg and gettime y todo lo que antes usaba "s".