![]() |
![]() ![]() « Citoyen » 1396005480000
| 0 | ||
ya aynı hata. |
![]() « Citoyen » 1396005600000
| 1 | ||
Ben de bir otobüs yapayım dedim öylesine. Özeni siz gösterirsiniz. Cipsin ki kadar iyi olmasada: a dit : 0.8 falan kalmış :P Renk seçimiyle uğraşmamak için en son TfmTextArea eklemiştim de :) |
![]() ![]() « Citoyen » 1396006380000
| 0 | ||
## Runtime Error : Profightxdp.lua:47: attempt to index ? (a nil value) ? |
![]() « Citoyen » 1396006380000
| 0 | ||
Profightxdp a dit : Kodu at bir zahmet.. |
![]() ![]() « Citoyen » 1396006500000
| 1 | ||
admins={Profightxdp=true, Assasinscrrd=true, Pazulufare=true} function eventChatCommand(isim,komut) local args = {} for arg in komut:gmatch("%S+") do table.insert(args, arg) end if args[1] == "time" and admins[isim] then tfm.exec.setGameTime(tonumber(args[2])) elseif args[1] == "skor" and admins[isim] then local super, coder = args[3] and args[2] or isim, args[3] or args[2] tfm.exec.setPlayerScore(super, tonumber(coder) or 0) elseif komut=="p *" and admins[isim] then for isim in pairs(tfm.get.room.playerList) do tfm.exec.giveCheese(isim) end elseif komut=="s *" and admins[isim] then for isim in pairs(tfm.get.room.playerList) do tfm.exec.setShaman(isim) end elseif komut=="k *" and admins[isim] then for isim in pairs(tfm.get.room.playerList) do tfm.exec.killPlayer(isim) end elseif komut=="r *" and admins[isim] then for isim in pairs(tfm.get.room.playerList) do tfm.exec.respawnPlayer(isim) end elseif args[1] == "k" and admins[isim] then tfm.exec.killPlayer(args[2]) elseif args[1] == "p" and admins[isim] then tfm.exec.giveCheese(args[2]) elseif args[1] == "s" and admins[isim] then tfm.exec.setShaman(args[2]) elseif args[1] == "r" and admins[isim] then tfm.exec.respawnPlayer(args[2]) elseif args[1] == "map" and admins[isim] then tfm.exec.newGame(args[2]) elseif args[1] == "รถl" then tfm.exec.killPlayer(args[2]) elseif komut == "rapor" then ui.addPopup(0,2,"İletişime geç. Seni rahatsız eden bir durumu bildir.",isim,200,160,300,200) end end function eventPopupAnswer(id, isim, answer) if id == 0 then rapor.rapors = rapor.rapors .. "\n" .. "<V>" .. (isim) .. " <N>bir rapor yolladı ; <br>" .. "<N>" .. (answer) rapor.rapor = rapor.rapor .. "\n" .. "<R> Kullanıcı Adı : <V>" .. (isim) .. " <N><br>" .. "<J>Mesaj :<N>" .. (answer) for isim,player in pairs(admins) do end end end ui.addTextArea(66,"<a href='event:rapors'>Raporlar</a>",isim,20,20,60,20) function eventTextAreaCallback(id,isim,callback) if admins[isim] then if callback=="rapors" then ui.addTextArea(6,"<J><font size='15'><p align='center'>Raporlar</p></font><br>"..rapor.rapors.."",isim,175,50,450,250,0x00001,0x00001,0.7,true) ui.addTextArea(7,"<a href='event:close'><R>Kapat</a>",isim,175,310,50,20) end if callback=="close" then ui.removeTextArea(6,isim) ui.removeTextArea(7,isim) ui.removeTextArea(8,isim) end if callback=="rapor" then ui.addTextArea(8,rapor.rapor,isim,225,50,275,125,0x00001,0x00001,0.7,true) ui.addTextArea(7,"<a href='event:close'><R>Kapat</a>",isim,225,185,50,20) end end end |
![]() ![]() « Citoyen » 1396007760000
| 0 | ||
attım ? |
0 | ||
Fatihmilano a dit : elseif'in end'i olmaz. |
![]() ![]() « Citoyen » 1396008300000
| 0 | ||
bi öyle deniyeyim |
![]() ![]() « Citoyen » 1396008420000
| 0 | ||
o seferde şu hatayı veriyor. ## Init Error : [string "Profightxdp.lua"]:68: 'end' expected (to close 'function' at line 54) |
0 | ||
Profightxdp a dit : 54. satırda ne var ? |
![]() ![]() « Citoyen » 1396008540000
| 0 | ||
function eventTextAreaCallback(id,isim,callback) bu var |
0 | ||
Profightxdp a dit : Bu fonksiyonun altını at. |
![]() ![]() « Citoyen » 1396008660000
| 0 | ||
altındaki end'e kadar komut bu if admins[isim] then if callback=="rapors" then ui.addTextArea(6,"<J><font size='15'><p align='center'>Raporlar</p></font><br>"..rapor.rapors.."",isim,175,50,450,250,0x00001,0x00001,0.7,true) ui.addTextArea(7,"<a href='event:close'><R>Kapat</a>",isim,175,310,50,20) end |
0 | ||
Profightxdp a dit : Birde şöyle dene: function eventTextAreaCallback(id,isim,callback) if admins[isim] then if callback=="rapors" then ui.addTextArea(6,"<J><font size='15'><p align='center'>Raporlar</p></font><br>"..rapor.rapors.."",isim,175,50,450,250,0x00001,0x00001,0.7,true) ui.addTextArea(7,"<a href='event:close'><R>Kapat</a>",isim,175,310,50,20) end elseif callback=="close" then ui.removeTextArea(6,isim) ui.removeTextArea(7,isim) ui.removeTextArea(8,isim) elseif callback=="rapor" then ui.addTextArea(8,rapor.rapor,isim,225,50,275,125,0x00001,0x00001,0.7,true) ui.addTextArea(7,"<a href='event:close'><R>Kapat</a>",isim,225,185,50,20) end end |
![]() « Citoyen » 1396008780000
| 0 | ||
Oyga a dit : Elseif end görevi görür. Orada da ifi endle kapatmış oluyorsun. Altındaki end de elseifin endi. |
![]() ![]() « Citoyen » 1396008960000
| 0 | ||
## Init Error : [string "Profightxdp.lua"]:54: 'end' expected (to close 'function' at line 3) |
![]() ![]() « Citoyen » 1396010880000
| 0 | ||
Profightxdp a dit : f admins[isim] then if callback=="rapors" then ui.addTextArea(6,"<J><font size='15'><p align='center'>Raporlar</p></font><br>"..rapor.rapors.."",isim,175,50,450,250,0x00001,0x00001,0.7,true) ui.addTextArea(7,"<a href='event:close'><R>Kapat</a>",isim,175,310,50,20) End end |
![]() ![]() « Citoyen » 1396012500000
| 1 | ||
a dit : ^^ !rapor komutuyla rapor yollama, kutucuğa tıklayarak adminler raporlara bakabilir. |
![]() ![]() « Citoyen » 1396013160000
| 0 | ||
ya lanet olsun ya olmuyor birisi şuraya gelip yapabilirmi ? https://code.stypi.com/neonstrayzer/deneme.lua |
![]() ![]() « Citoyen » 1396015320000
| 0 | ||
:( of ya. |