problema syserr

Totalitatea subiectelor care nu respectă regulamentul impus in sectiunea "Probleme şi Întrebări" vor fi stocate aici.
Închis
Avatar utilizator
MGeorge
Nivel 3

Nivel 3
Mesaje: 317
Membru din: 28 Dec 2013, 12:43
Server: -
Regat: Chunjo
Aprecieri: 367  
Mulţumiri: 8  
Medalii

SYSERR: Mar 4 17:44:34 :: RunState: LUA_ERROR: [string "tombola_metin2roa"]:7: attempt to index global `tombola' (a nil value)
SYSERR: Mar 4 17:44:34 :: WriteRunningStateToSyserr: LUA_ERROR: quest tombola_metin2roa.start click
Stie cineva rezolvarea?????
aici aveti quest-ul:

Cod: Selectaţi tot

quest tombola_thoria begin
    state start begin
        function tablica(vnum, pozitie, pozitie2)
            local itemy = {
                            {
                                {71001, 1},
                                {71084, 25},
                                {71085, 25},
                                {25040, 3},
                                {27992, 2},
                                {27993, 2},
                                {27994, 2},
                                {27987, 5},
                                {72002, 1},
                                {71027, 5},
                                {71028, 5},
                                {71029, 5},
                                {71030, 5},
                                {71036, 1},
                                {50008, 15},
                                {70021, 3},
                                {71001, 1},
                            },
                            {
                                {25041, 1},
                                {71084, 25},
                                {71085, 25},
                                {25040, 3},
                                {27992, 2},
                                {27993, 2},
                                {27994, 2},
                                {27987, 5},
                                {72002, 1},
                                {71027, 5},
                                {71028, 5},
                                {71029, 5},
                                {71030, 5},
                                {71036, 1},
                                {50008, 15},
                                {70021, 3},
                                {25041, 1},
                            }
                        }
                return itemy[vnum][pozitie][pozitie2]
            end
              
          
          
        when login begin
            cmdchat("tombola "..q.getcurrentquestindex())
        end
      
        when 9005.chat."Deschide Tombola" with pc.is_gm() begin
            local vegas = number(1,2)
            local str = " "
local tombola = 0
            for q = 1,16 do
                if q == 16 then
                    str = str..tombola.tablica(vegas, q, 1).."|"..tombola.tablica(vegas, q, 2)
                else
                    str = str..tombola.tablica(vegas, q, 1).."|"..tombola.tablica(vegas, q, 2).."|"
                end
            end
            cmdchat("OnPrepare"..str)
            cmdchat("openTombola")
            setskin(NOWINDOW)
        end
      
        when info or button begin
            local vegas = number(1,2)
            local str = " "
local tombola = 0
            for q = 1,16 do
                if q == 16 then
                    str = str..tombola.tablica(vegas, q, 1).."|"..tombola.tablica(vegas, q, 2)
                else
                    str = str..tombola.tablica(vegas, q, 1).."|"..tombola.tablica(vegas, q, 2).."|"
                end
            end
            cmdchat("OnPrepare"..str)
            if pc.count_item(30319) < 1 then
                syschat("Nu puteti juca, pentru că nu aveti suficient spatiu în inventar.")
                return
else
                pc.remove_item(30319, 1)
            end
            cmdchat("get_input_start")
            local intrare = input(cmdchat("get_input_value"))
            cmdchat("get_input_end")
            if intrare == "tombola|begin" then
                pc.setqf("slot", number(1, 16))
                cmdchat("OnRun "..number(2,3)*16+pc.getqf("slot").."|5")
            elseif intrare == "tombola|end" then
                cmdchat("buff_vegas") --- o sa va caut sa va pun un effect si va fac un tut de implementare
                syschat("Felicitări! Ai primit "..tombola.tablica(vegas, pc.getqf("slot")+1, 2).."x "..item_name(tombola.tablica(vegas, pc.getqf("slot")+1, 1)).." ca o recompensă în Tombola!")
                pc.give_item2(tombola.tablica(vegas, pc.getqf("slot")+1, 1), tombola.tablica(vegas, pc.getqf("slot")+1, 2))
            end
        end
    end
end
Avatar utilizator
MGeorge
Nivel 3

Nivel 3
Mesaje: 317
Membru din: 28 Dec 2013, 12:43
Server: -
Regat: Chunjo
Aprecieri: 367  
Mulţumiri: 8  
Medalii

nimeni?:(
Avatar utilizator
AlexTzutzu
Nivel 10

Nivel 10
Mesaje: 2345
Membru din: 12 Feb 2014, 13:59
Server: Am RENUNTAT
Regat: Jinno
Aprecieri: 18  
Mulţumiri: 91  
 Contact:
Medalii

cred ca nu este complet,din punct de vedere este complet la quest dar cred ca mai ii trebuie ceva.
Imagine


The quieter you become,the more you are able to hear.
Afișează semnătura
Închis
Răspunsuri
5
Vizualizări
831
Răspunsuri
1
Vizualizări
106
Răspunsuri
13
Vizualizări
1073
Răspunsuri
3
Vizualizări
486

Înapoi la “Arhivă Probleme şi Întrebări”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 83 vizitatori