Alias Problem

Post Reply
Skriptz
Posts: 45
Joined: Sun Dec 27, 2009 10:48 pm

Alias Problem

Post by Skriptz »

I've created an alias with the patter ^dds$
This is it
Code: [show] | [select all] lua
echo("\nDead:"..dead)
echo("\nAff.Anorexia:"..Aff.Anorexia)
echo("\nAeon:"..Aff.Aeon)
echo("\nStunned:"..Aff.Stunned)
echo("\nSleep:"..Aff.Sleep)
echo("\nHerb:"..Balance.Herb)
however I send the command dds but get nothing at all

User avatar
Vadi
Posts: 5042
Joined: Sat Mar 14, 2009 3:13 pm

Re: Alias Problem

Post by Vadi »

Probably some of your variables are nil. Try

echo("\nDead:"..tostring(dead))
echo("\nAff.Anorexia:"..tostring(Aff.Anorexia))
...etc

Skriptz
Posts: 45
Joined: Sun Dec 27, 2009 10:48 pm

Re: Alias Problem

Post by Skriptz »

Vadi wrote:Probably some of your variables are nil. Try

echo("\nDead:"..tostring(dead))
echo("\nAff.Anorexia:"..tostring(Aff.Anorexia))
...etc
Your a GOD Vadi. I LOVE you!

I have been trying to figure out my code for 2 full days. Trying to figure out one problem that's stopping me and now I know what was wrong. Dead variable is nil while the others are zero. Thank you a heap.

User avatar
Vadi
Posts: 5042
Joined: Sat Mar 14, 2009 3:13 pm

Re: Alias Problem

Post by Vadi »

Look in the Errors view next time as well

Post Reply