×

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ığı
« ‹ 43 / 388 › »
Lua Kodları Tartışma & Yardımlaşma Başlığı
Neonstrayzer
« Citoyen »
1395867000000
    • Neonstrayzer#0000
    • Profil
    • Derniers messages
    • Tribu
#841
  0
Bilmemfarene a dit :


## Init Error : Bilmemfarene.lua:1: attempt to concatenate nil and string
böyle bir hata veriyor.

timersure=10
tfm.exec.setUIMapName("Yeni oyun başlamasına : " ..timersure.. " sn kaldı")
timer = false
function eventPlayerDied(n)
i=0
if not tfm.get.room.playerList[name].isDied then
i = i+1
if i == 1 then
timer = true
end
end
end


function eventLoop(t,rt)
if timer==true then
timersure = timersure -1
elseif timersure==0 then
tfm.exec.newGame()
end
end

function eventNewGame()
timersure = 10
timer=false
end


^^ Kod böle olmalı timersure yi aşağı almış fakat daha lua onu yorumlamadan timersure kullanmış buda hata verir :S
Bilmemfarene
« Censeur »
1395903960000
    • Bilmemfarene#0000
    • Profil
    • Derniers messages
    • Tribu
#842
  0
Neonstrayzer a dit :

timersure=10
tfm.exec.setUIMapName("Yeni oyun başlamasına : " ..timersure.. " sn kaldı")
timer = false
function eventPlayerDied(n)
i=0
if not tfm.get.room.playerList[name].isDied then
i = i+1
if i == 1 then
timer = true
end
end
end


function eventLoop(t,rt)
if timer==true then
timersure = timersure -1
elseif timersure==0 then
tfm.exec.newGame()
end
end

function eventNewGame()
timersure = 10
timer=false
end


^^ Kod böle olmalı timersure yi aşağı almış fakat daha lua onu yorumlamadan timersure kullanmış buda hata verir :S

hep Yeni oyun başlamasına : 10 sn kaldı diyor :D
Opsfentek
« Citoyen »
1395918720000
    • Opsfentek#0000
    • Profil
    • Derniers messages
    • Tribu
#843
  0
odada bir snü adam topla bir kişi kalana kadar oyna
sonra bak
Darkjumfor
« Citoyen »
1395923040000
    • Darkjumfor#0000
    • Profil
    • Derniers messages
    • Tribu
#844
  0
böle bir kod varmı varsa verirmisiniz !c sa yazınca mavi renkde yazmak istiyorum *
Oyga
« Citoyen »
1395929040000
    • Oyga#0000
    • Profil
    • Derniers messages
    • Tribu
#845
  0
Darkjumfor a dit :
böle bir kod varmı varsa verirmisiniz !c sa yazınca mavi renkde yazmak istiyorum *

function eventChatCommand(isim,komut)
local arg={}
for argument in komut:gmatch("[^%s]+") do
table.insert(arg, argument)
end
if arg[1]=="c" then
ui.addTextArea(0,"<ROSE>"..isim.."<J>:<CH> "..arg[2])
end
end
Darkjumfor
« Citoyen »
1395933300000
    • Darkjumfor#0000
    • Profil
    • Derniers messages
    • Tribu
#846
  0
Oyga a dit :


function eventChatCommand(isim,komut)
local arg={}
for argument in komut:gmatch("[^%s]+") do
table.insert(arg, argument)
end
if arg[1]=="c" then
ui.addTextArea(0,"&lt;ROSE&gt;"..isim.."&lt;J&gt;:&lt;CH&gt; "..arg[2])
end
end

Utility deki gibi istiyorum.
Fiermousel
« Citoyen »
1395933540000
    • Fiermousel#0000
    • Profil
    • Derniers messages
    • Tribu
#847
  0
Darkjumfor a dit :


Utility deki gibi istiyorum.

Utility gibi sohbete "Kabile Evinde" yazı yazamazsınız.
Profightxdp
« Citoyen »
1395935100000
    • Profightxdp#0000
    • Profil
    • Derniers messages
    • Tribu
#848
  0
Profightxdp a dit :

bu koda bunu nasıl ekleyebilirim ?

patatesler = {Profightxdp = true}

function eventChatCommand(selpak, masa)
local pijama = {}
for lokum in masa:gmatch("%S+") do
table.insert(pijama, lokum)
end
if pijama[1] == "skor" and patatesler[selpak] then
local super, coder = pijama[3] and pijama[2] or selpak, pijama[3] or pijama[2]
tfm.exec.setPlayerScore(super, tonumber(coder) or 0)
end
end

?

^ oyga bu kodu kmlcan verdi bak bakayım düzgün bir kodmu.Yardım edicek ?
Kmlcan
« Citoyen »
1395935460000
    • Kmlcan#0000
    • Profil
    • Derniers messages
    • Tribu
#849
  1
Düzgün bir kod, rahat olabilirsin.
Assasinscrrd
« Citoyen »
1395935700000
    • Assasinscrrd#0000
    • Profil
    • Derniers messages
#850
  0
Kmlcan a dit :
Düzgün bir kod, rahat olabilirsin.

Hayır nasıl ekliyeceğim onu bulamıyorum.
Kmlcan
« Citoyen »
1395935700000
    • Kmlcan#0000
    • Profil
    • Derniers messages
    • Tribu
#851
  1
eventLoop'un 600ms'de bir çağırıldığına kanıt;
a dit :
function eventLoop()
if starttime and not endtime then
endtime = os.time()
elseif not starttime and not endtime then
starttime = os.time()
else
print(endtime-starttime)
end
end

.
Hasannj
« Citoyen »
1395936000000
    • Hasannj#0000
    • Profil
    • Derniers messages
#852
  0
Hasannj a dit :
function eventNewPlayer(name)
tfm.exec.addImage(url,name)
end

Odaya giriş yapınca resim çıkması doğrumu?

^
Kmlcan
« Citoyen »
1395936000000
    • Kmlcan#0000
    • Profil
    • Derniers messages
    • Tribu
#853
  0
tfm.exec.addImage("url", "layer tipi", x, y, kullanıcı)
Hasannj
« Citoyen »
1395936120000
    • Hasannj#0000
    • Profil
    • Derniers messages
#854
  0
Kmlcan a dit :
tfm.exec.addImage("url", "layer tipi", x, y, kullanıcı)

tfm.exec.addImage("lol.jpg", "layer tipi", 310, 100, kullanıcı)

Böyle doldurduk diyelim, diğer iki şeyi anlamadım. Kullanıcı derken herkese görünmesini istiyorum. Ve 5 saniye sonra kaybolmasını.
Leo
« Citoyen »
1395936240000
    • Leo#6000
    • Profil
    • Derniers messages
#855
  0
Hasannj a dit :


tfm.exec.addImage("lol.jpg", "layer tipi", 310, 100, kullanıcı)

Böyle doldurduk diyelim, diğer iki şeyi anlamadım. Kullanıcı derken herkese görünmesini istiyorum. Ve 5 saniye sonra kaybolmasını.

eventloopa eklemen lazım.
Hasannj
« Citoyen »
1395936480000
    • Hasannj#0000
    • Profil
    • Derniers messages
#856
  0
Tutekkro a dit :


eventloopa eklemen lazım.

function eventNewPlayer(name)

ekleyeceğim diye biliyorum
Leo
« Citoyen »
1395936600000
    • Leo#6000
    • Profil
    • Derniers messages
#857
  0
Hasannj a dit :


function eventNewPlayer(name)

ekleyeceğim diye biliyorum

o doğruda 5 saniye sonra kapanması için function eventloop() fonksiyonuna eklemen lazım.
Hasannj
« Citoyen »
1395936600000
    • Hasannj#0000
    • Profil
    • Derniers messages
#858
  0
Tutekkro a dit :


o doğruda 5 saniye sonra kapanması için function eventloop() fonksiyonuna eklemen lazım.

LOL
Fatihmilano
« Citoyen »
1395936720000
    • Fatihmilano#0000
    • Profil
    • Derniers messages
    • Tribu
#859
  0
Tutekkro a dit :
o doğruda 5 saniye sonra kapanması için function eventloop() fonksiyonuna eklemen lazım.

Hayır.
Kmlcan
« Citoyen »
1395937260000
    • Kmlcan#0000
    • Profil
    • Derniers messages
    • Tribu
#860
  0
Fatihmilano a dit :


Hayır.

Evet.
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Lua Kodları Tartışma & Yardımlaşma Başlığı
« ‹ 43 / 388 › »
© Atelier801 2018

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

Version 1.27