
04-24-2006, 11:49 PM
|
|
Banned
|
 |
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
|
|
Script calling WTFDIE
|
Okay, this is pissing me the **** off.
I have a function in a class, 'GetInventoryVar(item,var)'
It returns the variable for an item. If I do 'GetInventoryVar("Short Sword","quantity")' it returns the number of Short Swords I have.
I originally had it planned so that if the item it's trying to get doesn't exist in the player's attributes, it sends an error to the console.
However, I made a spell identification system. Spells being with a '$.'
It was spamming the error, because the spell isn't an item.
The problem is that none of my scripts call the function on a .05 second timeout. On top of that, I put a check in to make sure it's not trying to get a spell, commented out the echo, added another echo, but it didn't do **** all. It's still echoing the same thing, even though the command is commented out.
The function doesn't exist anywhere else.
WTF is wrong? |
|
|
|