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
print "Loading Languages"
function Languages (player, event)
if GetTeam() == 0 then
elseif GetTeam() == 1 then
RegisterServerHook (3, Languages)