• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua TFS 1.x setVocation issue

andu

Sold 649 scripts, 25 maps and 9 events!
Joined
Aug 7, 2009
Messages
969
Solutions
17
Reaction score
355
GitHub
olrios
Twitch
olrios
Talkaction:
Code:
function onSay(player, words, param)
    if param == "" then
        return player:sendPrivateMessage(player, "Command param required.", MESSAGE_STATUS_CONSOLE_BLUE)
    end
    return player:setVocation(param)
end

When I write ingame example:
Code:
/voc 15
/voc 1
/voc 51
/voc 2
/voc 44
I'm getting such error:
Code:
[Warning - Vocations::getVocation] Vocation 65535 not found.
[Warning - Vocations::getVocation] Vocation 65535 not found.
[Warning - Vocations::getVocation] Vocation 65535 not found.
[Warning - Vocations::getVocation] Vocation 65535 not found.
[Warning - Vocations::getVocation] Vocation 65535 not found.

Where is the problem? What I'm doing wrong?
 
Back
Top