Attribute scripting won't work
Posted: Wed Aug 06, 2008 5:43 pm
Hi everybody, I was scripting, and suddenly this happened. I have this in the order:
THe console says Parse error near ""*
Now if I take away
HighLevel("Eliminar");
return 0;
It works.
And if I take away
ModifyAttribute("BalasTotales", +20, "Arma1");
It also works.
So
and
work, but together they won't. Why?
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");
}
}
}]