Code: Select all
CogerArma[()
{
if(FastDistance("Player", 20) = true)
{
BALASTOTALES = (GetAttribute("BalasTotales", "Arma1"));
if(BALASTOTALES > 0)
{
ModifyAttribute("BalasTotales", +20, "Arma1");
HighLevel("Eliminar");
return 0;
}
}
}]
Now if I take away
HighLevel("Eliminar");
return 0;
It works.
And if I take away
ModifyAttribute("BalasTotales", +20, "Arma1");
It also works.
So
Code: Select all
CogerArma[()
{
if(FastDistance("Player", 20) = true)
{
BALASTOTALES = (GetAttribute("BalasTotales", "Arma1"));
if(BALASTOTALES > 0)
{
HighLevel("Eliminar");
return 0;
}
}
}]
Code: Select all
CogerArma[()
{
if(FastDistance("Player", 20) = true)
{
BALASTOTALES = (GetAttribute("BalasTotales", "Arma1"));
if(BALASTOTALES > 0)
{
ModifyAttribute("BalasTotales", +20, "Arma1");
}
}
}]