Me tiene loco esto
#4

Quй extraсo, la condiciуn estб bien.

Baja de nuevo sscanf y reemplaza los archivos: https://sampforum.blast.hk/showthread.php?tid=602923

Si sigue sin funcionar, ъsalo asн:

Код:
CMD:unban(playerid, params[])
{
	new desbaneado[24];
	if(PlayerInfo[playerid][jAdmin] < 5) return SCM(playerid, ROJO, "** Necesitas ser administrador nivel +5 para usar este comando.");
	if(!sscanf(params, "s[24]", desbaneado))
	{
		new string[128];
        format(string, sizeof(string), "/Cuentas/%s.ini", desbaneado);
		if(!fexist(string)) return SCM(playerid, ROJO, "** Esa cuenta no existe.");
		new INI:Archivo = INI_Open(desbaneado);
		INI_SetTag(Archivo, "data");
		INI_WriteInt(Archivo, "Baneado", 0);
		INI_Close(Archivo);
		format(string, sizeof(string), "[#] %s ha sido desbaneado por el administrador %s(%d).", desbaneado, Nombre(playerid), playerid);
		SAM(ROJO, str);
	}
	else SCM(playerid, AMARILLO, "** Utiliza: /unban [nombre]");
	return 1;
}
Reply


Messages In This Thread
Me tiene loco esto - by DeLiC - 31.05.2016, 17:55
Re: Me tiene loco esto - by Unrea1 - 31.05.2016, 18:35
Respuesta: Re: Me tiene loco esto - by DeLiC - 31.05.2016, 18:40
Re: Me tiene loco esto - by Unrea1 - 31.05.2016, 18:52
Re: Me tiene loco esto - by zSuYaNw - 31.05.2016, 19:34
Re: Me tiene loco esto - by SickAttack - 01.06.2016, 02:38

Forum Jump:


Users browsing this thread: 1 Guest(s)