×

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ığı
« ‹ 322 / 388 › »
Lua Kodları Tartışma & Yardımlaşma Başlığı
Qvtl
« Citoyen »
1424798880000
    • Qvtl#0000
    • Profil
    • Derniers messages
#6421
  0
Admin Tablosunda Yazılı Olanlar İstedigi Fareyi İstedigi Yere Işınlayabılsın Istıyorum Örnek Ben Adminim bir farenin üstüne tıkladım ve gidicege yere tıkladım bunu yapabılırmısınız
Mielov
« Citoyen »
1424887320000
    • Mielov#0000
    • Profil
    • Derniers messages
    • Tribu
#6422
  0
Bana maplist lazım lütfen verin bendeki bozuk süre 0 oluyor map geçmiyor
Kablansaner
« Citoyen »
1425581160000
    • Kablansaner#0000
    • Profil
    • Derniers messages
#6423
  0
Fişek vb. bir şey ile yazı yazma kodu var mı? Var ise verebilir misiniz?
Neonstrayzer
« Citoyen »
1425588900000
    • Neonstrayzer#0000
    • Profil
    • Derniers messages
    • Tribu
#6424
  1
Mielov a dit :
Bana maplist lazım lütfen verin bendeki bozuk süre 0 oluyor map geçmiyor

    maps={}

    tfm.exec.disableAutoNewGame(true)
    tfm.exec.setGameTime(0)

    function controlAliveMice(t)
      local mice={}
      table.foreach(tfm.get.room.playerList,function(k,v)
        if not v.isDead then
          table.insert(mice,k)
        end
      end)
      if #mice==t then
        return true
      end
    end

    function eventLoop(t,rm)
      if rm<=0 or controlAliveMice(0) then
        tfm.exec.newGame(maps[math.random(#maps)])
      end
    end

Bütün haritaları üstte bulunan maps tablosu içerisine başında @ olmadan koyarsın.

Dernière modification le 1425636840000
Buralarfena
« Citoyen »
1425655080000
    • Buralarfena#0000
    • Profil
    • Derniers messages
#6425
  0
havai fişek kodu neydi beyler
Kutubaligi
« Citoyen »
1425662160000
    • Kutubaligi#0000
    • Profil
    • Derniers messages
    • Tribu
#6426
  0
Kmlcan a dit :
Teşekkürler.

http://imgur.com/g71m18R.png
Peynir 8: K1O2N3U

İpucun! Koddaki gizli kelimeden bende çok fazla var. Onları bulamıyorum, ne yapmalıyım? Onları görebilsem nasıl olurdu?

peynir güzelmiş
Kablansaner
« Citoyen »
1425666240000
    • Kablansaner#0000
    • Profil
    • Derniers messages
#6427
  0
kablansaner a dit :
Fişek vb. bir şey ile yazı yazma kodu var mı? Var ise verebilir misiniz?

^
Rip
« Censeur »
1425739560000
    • Rip#3826
    • Profil
    • Derniers messages
    • Tribu
#6428
  0
LUA çalışıyormu?
Melekrukiyye
« Citoyen »
1425753720000
    • Melekrukiyye#0000
    • Profil
    • Derniers messages
    • Tribu
#6429
  0
Kmlcan a dit :
Teşekkürler.

http://imgur.com/g71m18R.png
Peynir 8: K1O2N3U

İpucun! Koddaki gizli kelimeden bende çok fazla var. Onları bulamıyorum, ne yapmalıyım? Onları görebilsem nasıl olurdu?

Konu bu kadar kolay.
Uslufare
« Citoyen »
1425856200000
    • Uslufare#4255
    • Profil
    • Derniers messages
    • Tribu
#6430
  0
Lua çalışmıyor.
Emrevegolxd
« Citoyen »
1425934320000
    • Emrevegolxd#0000
    • Profil
    • Derniers messages
#6431
  0
Arap a dit :
Lua çalışmıyor.

Çalışıyor.
Muco
« Censeur »
1426016400000
    • Muco#2311
    • Profil
    • Derniers messages
    • Tribu
#6432
  1
kablansaner a dit :
kablansaner a dit :
Fişek vb. bir şey ile yazı yazma kodu var mı? Var ise verebilir misiniz?

^

Bu mu?
Particle={"11"}
pAtOnce=100
radiusX=200
radiusY=200
speedX=0
speedY=0

function eventLoop(ct,tr)
for i=1,pAtOnce do
tfm.exec.displayParticle(Particle[math.random(#Particle)],math.random(400-radiusX*4,400+radiusX*4),math.random(200-radiusY*2,200+radiusY*2),"0."..speedX,"0."..speedY,"0."..speedX,"0."..speedY,nil)
end
end
Neonstrayzer
« Citoyen »
1426087200000
    • Neonstrayzer#0000
    • Profil
    • Derniers messages
    • Tribu
#6433
  0
LUA sürüm atladı!
Enesxfbxpro
« Censeur »
1426087980000
    • Enesxfbxpro#0000
    • Profil
    • Derniers messages
    • Tribu
#6434
  0
neonstrayzer a dit :
LUA sürüm atladı!

Tig'in konusunda 0.19 yazıyor?
Neonstrayzer
« Citoyen »
1426088160000
    • Neonstrayzer#0000
    • Profil
    • Derniers messages
    • Tribu
#6435
  1
Enesxfbxpro a dit :
neonstrayzer a dit :
LUA sürüm atladı!

Tig'in konusunda 0.19 yazıyor?

Konu anında güncellenecek diye bir şey yok.
http://i.imgur.com/n3oepA8.png
Yeni fonksiyonlar;
getmetatable
rawget
rawlen
rawset
select
setmetatable
bit32.band
bit32.bnot
bit32.bor
bit32.btest
bit32.extract
bit32.replace
bit32.arshift
bit32.lrotate
bit32.lshift
bit32.rrotate
bit32.rshift
bit32.wrap
coroutine.create
coroutine.resume
coroutine.running
coroutine.status
coroutine.yield
coroutine.wrap
table.pack
table.unpack
Enginfener
« Citoyen »
1426088160000
    • Enginfener#0000
    • Profil
    • Derniers messages
    • Tribu
#6436
  1
Burada Lua 5.2 ile gelen yeni özelliklerin listesi bulunmaktadır.

  • getmetatable
  • rawget
  • rawlen
  • rawset
  • select
  • setmetatable
  • bit32.band
  • bit32.bnot
  • bit32.bor
  • bit32.btest
  • bit32.extract
  • bit32.replace
  • bit32.arshift
  • bit32.lrotate
  • bit32.lshift
  • bit32.rrotate
  • bit32.rshift
  • bit32.wrap
  • coroutine.create
  • coroutine.resume
  • coroutine.running
  • coroutine.status
  • coroutine.yield
  • coroutine.wrap
  • table.pack
  • table.unpack



Arg'ın kullanımı değişmiştir (artık arg kullanılmıyor), problemi şöyle çözebilirsin:

a dit :
local arg = {...}

os.time artık bir saniye.
Neonstrayzer
« Citoyen »
1426155720000
    • Neonstrayzer#0000
    • Profil
    • Derniers messages
    • Tribu
#6437
  1
cannon={17,200,200,90}
tfm.exec.addShamanObject(table.unpack(cannon))
--
admins={}
rawset(admins,"Neonstrayzer",true)

Yeni LUA fonksiyonları çok hoş

Dernière modification le 1426156140000
Emrevegolxd
« Citoyen »
1426158180000
    • Emrevegolxd#0000
    • Profil
    • Derniers messages
#6438
  0
güncelleme fena olmuş
Searchwins
« Citoyen »
1426158600000
    • Searchwins#0000
    • Profil
    • Derniers messages
#6439
  0
Şu kodlara sadece bakıyorum bir şey anlamadan. :/
Neonstrayzer
« Citoyen »
1426188120000
    • Neonstrayzer#0000
    • Profil
    • Derniers messages
    • Tribu
#6440
  0
Artık askıya alınan fonksiyonlar oluşturabiliyoruz!
testFunc = coroutine.create(function(a)
print(a)
end)
Bu fonksiyonları testFunc("test") şeklinde açamazsınız. Çünkü bu fonksiyon askıya alınmıştır. Bu fonksiyonları kullanabilmek için coroutine.resume kullanılır. Örnek; coroutine.resume(testFunc,"test"). Ayrıca eğer coroutine.resume kullanmadan önce bu fonksiyonun askıya alınıp alınmadığını öğrenmek için print(coroutine.status(testFunc)) yöntemini kullanabilirsiniz. Eğer print edilen suspended olursa askıya alınmış, ancak resume edilip sonra print edilirse dead yani kullanılmaz olur.
Ayrıca coroutine.wrap ise fonksiyonun kendi kendine çalışmasını sağlayabilir. Örnek olarak;
test = coroutine.wrap(function(a)
print(a)
end)
test("Bu bir test!")

Daha fazla bilgi için http://www.lua.org/pil/9.1.html bura ve http://www.tutorialspoint.com/lua/lua_coroutines.htm burası yardımcı olabilir.

Dernière modification le 1426188780000
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Lua Kodları Tartışma & Yardımlaşma Başlığı
« ‹ 322 / 388 › »
© Atelier801 2018

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

Version 1.27