Error rank.xml MOD ayuda!
Vie Mayo 25, 2012 7:50 pm
Tengo Este Error me Pueden Arreglar?
- Spoiler:
- [26/5/2012 2:49:8] [Error - CreatureScript Interface]
[26/5/2012 2:49:8] domodlib("ranks")
[26/5/2012 2:49:8] function onLook(cid, thing, position, lookDistance)
[26/5/2012 2:49:8] if(isPlayer(thing.uid)) then
[26/5/2012 2:49:8] local rank = {rank = "Private", frags = 0}
[26/5/2012 2:49:8] for k, v in pairs(titles) do
[26/5/2012 2:49:8] if(math.max(0, getPlayerStorageValue(thing.uid, fragsStorage)) > k - 1) then
[26/5/2012 2:49:8] if(k - 1 > rank.frags) then
[26/5/2012 2:49:8] rank.rank, rank.frags = v, k - 1
[26/5/2012 2:49:8] end
[26/5/2012 2:49:8] end
[26/5/2012 2:49:8] end
[26/5/2012 2:49:8] doPlayerSetSpecialDescription(thing.uid, "\n Military rank: " .. rank.rank)
[26/5/2012 2:49:8] end
[26/5/2012 2:49:8] return true
[26/5/2012 2:49:8] end
[26/5/2012 2:49:8] :onLook
[26/5/2012 2:49:8] Description:
[26/5/2012 2:49:8] [string "LuaInterfaceBuffer"]:6: bad argument #3 to 'max' (number expected, got nil)
[26/5/2012 2:49:8] stack traceback:
[26/5/2012 2:49:8] [C]: in function 'max'
[26/5/2012 2:49:8] [string "LuaInterfaceBuffer"]:6: in function <[string "LuaInterfaceBuffer"]:2>
[26/5/2012 2:49:8] [Error - CreatureScript Interface]
[26/5/2012 2:49:8] domodlib("ranks")
[26/5/2012 2:49:8] function onLook(cid, thing, position, lookDistance)
[26/5/2012 2:49:8] if(isPlayer(thing.uid)) then
[26/5/2012 2:49:8] local rank = {rank = "Private", frags = 0}
[26/5/2012 2:49:8] for k, v in pairs(titles) do
[26/5/2012 2:49:8] if(math.max(0, getPlayerStorageValue(thing.uid, fragsStorage)) > k - 1) then
[26/5/2012 2:49:8] if(k - 1 > rank.frags) then
[26/5/2012 2:49:8] rank.rank, rank.frags = v, k - 1
[26/5/2012 2:49:8] end
[26/5/2012 2:49:8] end
[26/5/2012 2:49:8] end
[26/5/2012 2:49:8] doPlayerSetSpecialDescription(thing.uid, "\n Military rank: " .. rank.rank)
[26/5/2012 2:49:8] end
[26/5/2012 2:49:8] return true
[26/5/2012 2:49:8] end
[26/5/2012 2:49:8] :onLook
[26/5/2012 2:49:8] Description:
[26/5/2012 2:49:8] [string "LuaInterfaceBuffer"]:6: bad argument #3 to 'max' (number expected, got nil)
[26/5/2012 2:49:8] stack traceback:
[26/5/2012 2:49:8] [C]: in function 'max'
[26/5/2012 2:49:8] [string "LuaInterfaceBuffer"]:6: in function <[string "LuaInterfaceBuffer"]:2>
Permisos de este foro:
No puedes responder a temas en este foro.