×

Langue

Fermer
Atelier 801
  • Forums
  • Dev Tracker
  • Connexion
    • English Français
      Português do Brasil Español
      Türkçe Polski
      Magyar Română
      العربية Skandinavisk
      Nederlands Deutsch
      Bahasa Indonesia Русский
      中文 Filipino
      Lietuvių kalba 日本語
      Suomi עברית
      Italiano Česky
      Hrvatski Slovensky
      Български Latviešu
      Estonian
  • Langue
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Lua Kodları Tartışma & Yardımlaşma Başlığı
« ‹ 45 / 388 › »
Lua Kodları Tartışma & Yardımlaşma Başlığı
Profightxdp
« Citoyen »
1396005480000
    • Profightxdp#0000
    • Profil
    • Derniers messages
    • Tribu
#881
  0
ya aynı hata.
Fatihmilano
« Citoyen »
1396005600000
    • Fatihmilano#0000
    • Profil
    • Derniers messages
    • Tribu
#882
  1
Ben de bir otobüs yapayım dedim öylesine. Özeni siz gösterirsiniz. Cipsin ki kadar iyi olmasada:
a dit :
function ui.addTfmTextArea(id, t, tP, x, y, w, h, o)
local tA = ui.addTextArea
tA(6969+id,"",tP,x,y+1,w,h,0x000001,0x000001,nil,o)
tA(7979+id,"",tP,x,y-1,w,h,0x6A8FA2,0x6A8FA2,nil,o)
tA(id,t,tP,x,y,w,h,nil,0x324650,nil,o)
end

function ui.removeTfmTextArea(id, tP)
local rA = ui.removeTextArea
local tP = tP or nil
rA(6969+id, tP)
rA(7979+id, tP)
rA(id, tP)
end
otobusx=5
tekerlekx=20
tekerlekkx=270
function eventLoop()
otobusx=otobusx+20
tekerlekx=tekerlekx+20
tekerlekkx=tekerlekkx+20
ui.addTfmTextArea(1,"",p,otobusx,50,300,100,0,1,0.8,true)
ui.addTfmTextArea(2,"",p,tekerlekx,150,25,25,0,1,0.8,true)
ui.addTfmTextArea(3,"",p,tekerlekkx,150,25,25,0,1,0.8,true)
end

0.8 falan kalmış :P Renk seçimiyle uğraşmamak için en son TfmTextArea eklemiştim de :)
Profightxdp
« Citoyen »
1396006380000
    • Profightxdp#0000
    • Profil
    • Derniers messages
    • Tribu
#883
  0
## Runtime Error : Profightxdp.lua:47: attempt to index ? (a nil value) ?
Fatihmilano
« Citoyen »
1396006380000
    • Fatihmilano#0000
    • Profil
    • Derniers messages
    • Tribu
#884
  0
Profightxdp a dit :
## Runtime Error : Profightxdp.lua:47: attempt to index ? (a nil value) ?

Kodu at bir zahmet..
Profightxdp
« Citoyen »
1396006500000
    • Profightxdp#0000
    • Profil
    • Derniers messages
    • Tribu
#885
  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
Assasinscrrd
« Citoyen »
1396007760000
    • Assasinscrrd#0000
    • Profil
    • Derniers messages
#886
  0
attım ?
Oyga
« Citoyen »
1396008300000
    • Oyga#0000
    • Profil
    • Derniers messages
    • Tribu
#887
  0
Fatihmilano a dit :


Evet ama 3. end elseifin.

elseif'in end'i olmaz.
Assasinscrrd
« Citoyen »
1396008300000
    • Assasinscrrd#0000
    • Profil
    • Derniers messages
#888
  0
bi öyle deniyeyim
Profightxdp
« Citoyen »
1396008420000
    • Profightxdp#0000
    • Profil
    • Derniers messages
    • Tribu
#889
  0
o seferde şu hatayı veriyor.
## Init Error : [string "Profightxdp.lua"]:68: 'end' expected (to close 'function' at line 54)
Oyga
« Citoyen »
1396008420000
    • Oyga#0000
    • Profil
    • Derniers messages
    • Tribu
#890
  0
Profightxdp a dit :
o seferde şu hatayı veriyor.
## Init Error : [string "Profightxdp.lua"]:68: 'end' expected (to close 'function' at line 54)

54. satırda ne var ?
Profightxdp
« Citoyen »
1396008540000
    • Profightxdp#0000
    • Profil
    • Derniers messages
    • Tribu
#891
  0
function eventTextAreaCallback(id,isim,callback)

bu var
Oyga
« Citoyen »
1396008540000
    • Oyga#0000
    • Profil
    • Derniers messages
    • Tribu
#892
  0
Profightxdp a dit :
function eventTextAreaCallback(id,isim,callback)

bu var

Bu fonksiyonun altını at.
Profightxdp
« Citoyen »
1396008660000
    • Profightxdp#0000
    • Profil
    • Derniers messages
    • Tribu
#893
  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
Oyga
« Citoyen »
1396008780000
    • Oyga#0000
    • Profil
    • Derniers messages
    • Tribu
#894
  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
Fatihmilano
« Citoyen »
1396008780000
    • Fatihmilano#0000
    • Profil
    • Derniers messages
    • Tribu
#895
  0
Oyga a dit :
elseif'in end'i olmaz.

Elseif end görevi görür. Orada da ifi endle kapatmış oluyorsun. Altındaki end de elseifin endi.
Profightxdp
« Citoyen »
1396008960000
    • Profightxdp#0000
    • Profil
    • Derniers messages
    • Tribu
#896
  0
## Init Error : [string "Profightxdp.lua"]:54: 'end' expected (to close 'function' at line 3)
Iemrevegol
« Citoyen »
1396010880000
    • Iemrevegol#0000
    • Profil
    • Derniers messages
    • Tribu
#897
  0
Profightxdp a dit :
altındaki end'e kadar komut bu

if admins[isim] then
if callback=="rapors" then
ui.addTextArea(6,"&lt;J&gt;&lt;font size='15'&gt;&lt;p align='center'&gt;Raporlar&lt;/p&gt;&lt;/font&gt;&lt;br&gt;"..rapor.rapors.."",isim,175,50,450,250,0x00001,0x00001,0.7,true)
ui.addTextArea(7,"&lt;a href='event:close'&gt;&lt;R&gt;Kapat&lt;/a&gt;",isim,175,310,50,20)
end

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
Dogangun
« Citoyen »
1396012500000
    • Dogangun#0000
    • Profil
    • Derniers messages
    • Tribu
#898
  1
a dit :
admins={Dogangun=true}
rapor={rapors="", rapor=""}
system.disableChatCommandDisplay('rapor')
function eventChatCommand(name, cmd)
if cmd=="rapor" then
ui.addPopup(0,2,"Yöneticilere rapor yolla.",name,200,160,300,200)
end
end
function eventPopupAnswer(id, name, answer)
if id == 0 then
rapor.rapors = rapor.rapors .. "\n" .. "<V>" .. (name) .. " <N>bir rapor yolladı ; <br>" .. "<N>" .. (answer)
rapor.rapor = rapor.rapor .. "\n" .. "<R> Kullanıcı Adı : <V>" .. (name) .. " <N><br>" .. "<J>Mesaj :<N>" .. (answer)
for name,player in pairs(admins) do
ui.addTextArea(5,"<a href='event:rapor'>Yeni Bir Rapor Yollandı</a>",name,250,375,175,20)
end
end
end
ui.addTextArea(66,"<a href='event:rapors'>Raporlar</a>",name,20,20,60,20)
function eventTextAreaCallback(id,name,callback)
if admins[name] then
if callback=="rapors" then
ui.addTextArea(6,"<J><font size='15'><p align='center'>Raporlar</p></font><br>"..rapor.rapors.."",name,175,50,450,250,0x00001,0x00001,0.7,true)
ui.addTextArea(7,"<a href='event:close'><R>Kapat</a>",name,175,310,50,20)
end
if callback=="close" then
ui.removeTextArea(6,name) ui.removeTextArea(7,name) ui.removeTextArea(8,name)
end
if callback=="rapor" then
ui.addTextArea(8,rapor.rapor,name,225,50,275,125,0x00001,0x00001,0.7,true)
ui.addTextArea(7,"<a href='event:close'><R>Kapat</a>",name,225,185,50,20)
end
end
end

^^ !rapor komutuyla rapor yollama, kutucuğa tıklayarak adminler raporlara bakabilir.
Profightxdp
« Citoyen »
1396013160000
    • Profightxdp#0000
    • Profil
    • Derniers messages
    • Tribu
#899
  0
ya lanet olsun ya olmuyor birisi şuraya gelip yapabilirmi ?

https://code.stypi.com/neonstrayzer/deneme.lua
Profightxdp
« Citoyen »
1396015320000
    • Profightxdp#0000
    • Profil
    • Derniers messages
    • Tribu
#900
  0
:( of ya.
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Lua Kodları Tartışma & Yardımlaşma Başlığı
« ‹ 45 / 388 › »
© Atelier801 2018

Equipe Conditions Générales d'Utilisation Politique de Confidentialité Contact

Version 1.27