jestem pro
That is the question
- Joined
- Apr 20, 2013
- Messages
- 650
- Solutions
- 14
- Reaction score
- 87
Hello, I can't imagine how it is made.
I have that table:
And can someone tell me how to get "price"?
I try ....
But it doesn't work.
Don't know how to get the name of the spell( light healing) and make it like spells[getSpellName].price
DUNNO HELP
I have that table:
Lua:
local spells = {
["light healing"] = {vocation = {1, 2, 5, 6}, price = 170, level = 9, premium = false},
["find person"] = {vocation = {1, 2, 5, 6}, price = 80, level = 8, premium = false},
And can someone tell me how to get "price"?
I try ....
Lua:
if getPlayerMoney(cid) >= spells.price then
Don't know how to get the name of the spell( light healing) and make it like spells[getSpellName].price
DUNNO HELP