• 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!

Błedy w konsoli;/

Status
Not open for further replies.

Julek12

New Member
Joined
Feb 19, 2008
Messages
160
Reaction score
0
Location
Universe -> Milky Way -> Solar System -> Earth ->
Witam,
Mam skrypt Creature: Anti Multi-Client - OpenTibia Fans
w anty_mc.lua mam
Code:
function onLogin(cid)
    local list = {}
    local ips = {}
    local text = "MULTI-CLIENTING IS BLOCKED."
    local players = getPlayersOnline()
    for i, pid in ipairs(players) do
        local ip = getPlayerIp(pid)
        local tmp = table.find(ips, ip)
        if(tmp ~= nil) then
                if(table.countElements(list, ip) == 0) then
                    list[players[tmp]] = ip
                    end

                list[pid] = ip
                end

            table.insert(ips, ip)
            end

    if(table.maxn(list) > 0) then
        for pid, ip in pairs(list) do
            doPlayerPopupFYI(cid, text)
            doRemoveCreature(cid)
            end
    end
    return TRUE
end
Skrypt działa ale w konsoli mam
Code:
[23/03/2009 22:28:59] God jfggdfsggfdg has logged in.
[23/03/2009 22:29:00] God jfggdfsggfdg has logged out.

[23/03/2009 22:29:00] Lua Script Error: [CreatureScript Interface] 
[23/03/2009 22:29:00] data/creaturescripts/scripts/anty_mc.lua:onLogin

[23/03/2009 22:29:00] luaDoPlayerPopupFYI(). Player not found

[23/03/2009 22:29:00] Lua Script Error: [CreatureScript Interface] 
[23/03/2009 22:29:00] data/creaturescripts/scripts/anty_mc.lua:onLogin

[23/03/2009 22:29:00] luaDoRemoveCreature(). Creature not found

TFS 0.3.2
 
Last edited:
Jakiej funkcji!!!!!!!!!!!!!!!!!!!!!!!!!!!!

bo te sa na 100%:
doPlayerPopupFYI(cid, message)
doRemoveCreature(cid)

a i skrypt działa nie można się zalogować i wysyła komunikat błędy ale są błędy w konsoli a to brzydko wygląda i sobie ich nie życzę i dlatego zwracam się do was!!
 
Ale po co takie zabezpieczenie. Jak beda jakies kawiarenki internetowej to se razem nie pograja.
 
Status
Not open for further replies.
Back
Top