Postado Dezembro 21, 2018 7 anos boa tarde, meu ot está dando esse erro, quando eu dou look em certas pessoas, como resolver ?? TFS0.4 [14:3:49.427] [Error - CreatureScript Interface] [14:3:49.427] domodlib("ranks") [14:3:49.427] function onLook(cid, thing, position, lookDistance) [14:3:49.427] if(isPlayer(thing.uid)) then [14:3:49.427] local rank = {rank = "Private", frags = 0} [14:3:49.427] for k, v in pairs(titles) do [14:3:49.427] if(math.max(0, getPlayerStorageValue(thing.uid, fragsStorage)) > k - 1) then [14:3:49.427] if(k - 1 > rank.frags) then [14:3:49.427] rank.rank, rank.frags = v, k - 1 [14:3:49.427] end [14:3:49.427] end [14:3:49.427] end [14:3:49.427] doPlayerSetSpecialDescription(thing.uid, "\n Military rank: " .. rank.rank) [14:3:49.427] end [14:3:49.427] return true [14:3:49.427] end [14:3:49.427] :onLook [14:3:49.427] Description: [14:3:49.427] [string "LuaInterface::loadBuffer"]:6: bad argument #2 to 'max' (number expected, got string) [14:3:49.427] stack traceback: [14:3:49.427] [C]: in function 'max' [14:3:49.427] [string "LuaInterface::loadBuffer"]:6: in function <[string "LuaInterface::loadBuffer"]:2> Editado Dezembro 21, 2018 7 anos por BilauX (veja o histórico de edições)
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.