Hi i have some error in my script ( text from server console )
line nr. 129 from exp.lua:
line nr. 332 from exp.lua:
Can someone tell me what is wrong ?
- - - Updated - - -
Ref help please
Code:
[Error - CreatureScript Interface]
[01/01/2013 19:38:21] data/creaturescripts/scripts/exp.lua:onStatsChange
[01/01/2013 19:38:21] Description:
[01/01/2013 19:38:21] data/creaturescripts/scripts/exp.lua:332: attempt to index field '?' (a nil value)
[01/01/2013 19:38:21] stack traceback:
[01/01/2013 19:38:21] data/creaturescripts/scripts/exp.lua:332: in function <data/creaturescripts/scripts/exp.lua:129>
Code:
function onStatsChange(cid, attacker, type, combat, value)
Code:
local poketype1 = pokes[getCreatureName(cid)].type
Can someone tell me what is wrong ?
- - - Updated - - -
Ref help please