Zadax
Enthusiast
Good morning/afternoon/night, sirs. I'm sorry to bother you with another thread that might just be caused because I'm doing something wrong, but, well, this's the problem:
I created this script:
I even tested it on a LUA engine to check if there was any error (0 errors found), but, after I added it and tried to use it, my worldserver doesnt share my opinion, and it just says "TC> scripts\Languages.lua:3: attempt to index local 'player' (a number value)". I dont really know what does that error mean, but, if any of you know the reason of why my script doesnt work, I'd be pleased to learn how to fix it
I created this script:
Code:
print "Loading Languages"
function Languages (player, event)
player:GetTeam();
if GetTeam() == 0 then
player:LearnSpell(669);
player:LearnSpell(668);
elseif GetTeam() == 1 then
player:LearnSpell(668);
player:LearnSpell(668);
else
end
end
RegisterServerHook (3, Languages)
I even tested it on a LUA engine to check if there was any error (0 errors found), but, after I added it and tried to use it, my worldserver doesnt share my opinion, and it just says "TC> scripts\Languages.lua:3: attempt to index local 'player' (a number value)". I dont really know what does that error mean, but, if any of you know the reason of why my script doesnt work, I'd be pleased to learn how to fix it
Last edited by a moderator: