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

Gesior soccer system, problem

yanger

Banned User
Joined
Aug 28, 2009
Messages
740
Reaction score
7
Location
Stalowa Wola, Poland
Code:
data/globalevents/scripts/football.lua:16:


Code:
function onThink(interval, lastExecution) 
    for m = 1 , #football_positions_uids do 
        match = football_positions_uids[m] 
        if(getGlobalStorageValue(match[1]) == -1) then 
            for t = match[1], match[12] do 
                setGlobalStorageValue(t, 0) 
            end 
        end 
        end_time = getGlobalStorageValue(match[1]) 
        if(end_time > 0 and end_time < os.time()) then 
            toPoss = {match[6], match[7]} 
            team_players = {"", ""} 
            for i = 1, 2 do 
                teamPoss = toPoss[i] 
                for p = 1, #teamPoss do 
                    team_players[i] = team_players[i] .. getCreatureName(getGlobalStorageValue(teamPoss[p])) 
                    if p ~= #teamPoss then 
                        team_players[i] = team_players[i] .. ", " 
                    end 
                end 
            end 
            score = "Team 1 (" .. team_players[1] .. ") - " .. getGlobalStorageValue(match[2]) .. " : " .. getGlobalStorageValue(match[3]) .. " - (" .. team_players[2] .. ") Team 2" 
            doBroadcastMessage("Football field " .. m .. ". " .. score, MESSAGE_STATUS_CONSOLE_BLUE) 
            for i = 1, 2 do 
                teamPoss = toPoss[i] 
                exitPos = getThingPos(match[1]) 
                for p = 1, #teamPoss do 
                    doTeleportThing(getGlobalStorageValue(teamPoss[p]), exitPos, TRUE) 
                    doPlayerSendTextMessage(getGlobalStorageValue(teamPoss[p]), MESSAGE_STATUS_CONSOLE_ORANGE, "You were in Team " .. i .. " on field " .. m .. ". " .. score) 
                end 
            end 
            for i = match[1], match[12] do 
                setGlobalStorageValue(i, 0) 
            end 
        end 
    end 
    return true 
end

What is wrong? Repp for help++
 
Code:
[13/07/2010 23:52:14] [Error - GlobalEvent Interface] 
[13/07/2010 23:52:14] data/globalevents/scripts/football.lua:onThink
[13/07/2010 23:52:14] Description: 
[13/07/2010 23:52:14] (luaGetCreatureName) Creature not found

[13/07/2010 23:52:14] [Error - GlobalEvent Interface] 
[13/07/2010 23:52:14] data/globalevents/scripts/football.lua:onThink
[13/07/2010 23:52:14] Description: 
[13/07/2010 23:52:14] data/globalevents/scripts/football.lua:16: attempt to concatenate a boolean value
[13/07/2010 23:52:14] stack traceback:
[13/07/2010 23:52:15] 	data/globalevents/scripts/football.lua:16: in function <data/globalevents/scripts/football.lua:1>
[13/07/2010 23:52:15] [Error - GlobalEvents::think] Couldn't execute event: football

When i keep ball to the "gate"
 
Well, this..
Code:
[13/07/2010 23:52:15] [Error - GlobalEvents::think] Couldn't execute event: football

It is because you messed up in your scripts.. Maybe you didnt do the LUA right, if I were you, contact Cyko ASAP lols
 
Back
Top