×

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
  • /
  • Üst Seviye Lua Kodlamaları
« ‹ 4 / 5 › »
Üst Seviye Lua Kodlamaları
Kmlcan
« Citoyen »
1385561460000
    • Kmlcan#0000
    • Profil
    • Derniers messages
    • Tribu
#61
  0
command.addHandler("komut", komutu yazacağınız fonksiyonun ismi)

Örn:
a dit :
command.addHandler("test", buBirTestKomutudur)

function buBirTestKomutudur(name)
--testtest
end
Fatihmilano
« Citoyen »
1385562060000
    • Fatihmilano#0000
    • Profil
    • Derniers messages
    • Tribu
#62
  0
Kemal name var bir sürü. Bazen bende şaşırıyorum. Buraya isminizi yazacaksınız diyebilirsin (diğer konularında bu zaten üst seviye). Ayrıca oyuna bakar mısın?
Hasannj
« Citoyen »
1385562060000
    • Hasannj#0000
    • Profil
    • Derniers messages
#63
  0
handler da popup için hangi fonksiyon yazıcaz
Kmlcan
« Citoyen »
1385562480000
    • Kmlcan#0000
    • Profil
    • Derniers messages
    • Tribu
#64
  0
command.addHandler("popup", popupOlustur)

function popupOlustur(name)
ui.addPopup kodu falan filan
end
Hasannj
« Citoyen »
1385563620000
    • Hasannj#0000
    • Profil
    • Derniers messages
#65
  0
[•] ui.addPopup : argument 2 can't be NIL.
Fatihmilano
« Citoyen »
1385624040000
    • Fatihmilano#0000
    • Profil
    • Derniers messages
    • Tribu
#66
  0
nil nedir arkadaşlar?
Profightxdp
« Citoyen »
1390647000000
    • Profightxdp#0000
    • Profil
    • Derniers messages
    • Tribu
#67
  0
ya olmuyor allah kahretsin olmuyor ! 2 gündür deniyorum olmuyorrrrrrrrr!
Farematizma
« Citoyen »
1395075420000
    • Farematizma#0000
    • Profil
    • Derniers messages
    • Tribu
#68
  0
Peki gruba istersek napcaz mesela sadece admin grubu kullansın istiyorsak ? bide komuta textarea ekleme gibi bir şansımız var mı ?
Kmlcan
« Citoyen »
1395076200000
    • Kmlcan#0000
    • Profil
    • Derniers messages
    • Tribu
#69
  0
Topic-463899
Ayrıca söylemiştim daha önce, istediğin her şeyi kullanabilirsin. Bunda hiçbir kısıtlama yok.
Dinorai
« Citoyen »
1396885740000
    • Dinorai#0000
    • Profil
    • Derniers messages
#70
  0
saol işime yaradı bikaç yerde :D
Herodoqukan
« Citoyen »
1401780300000
    • Herodoqukan#0000
    • Profil
    • Derniers messages
#71
  0
Yararlı konu teşekkürler ;)
Opsfentek
« Citoyen »
1401780960000
    • Opsfentek#0000
    • Profil
    • Derniers messages
    • Tribu
#72
  0
Bencede güzel konu :p
Neonstrayzer
« Citoyen »
1401781080000
    • Neonstrayzer#0000
    • Profil
    • Derniers messages
    • Tribu
#73
  0
Bencede güzel uplattınız.
Opsfentek
« Citoyen »
1401781320000
    • Opsfentek#0000
    • Profil
    • Derniers messages
    • Tribu
#74
  0
Saol ama ilk hero uplattı :D
Bide bence args daha kolay :p
Neonstrayzer
« Citoyen »
1401781620000
    • Neonstrayzer#0000
    • Profil
    • Derniers messages
    • Tribu
#75
  0
Opsfentek a dit :
Saol ama ilk hero uplattı :D
Bide bence args daha kolay :p

2 sini birden kullanabilirsin.
function eventChatCommand(player, message)
local args = string.split(message, "%s")
local text = table.remove(args, 1)
command.handle(string.lower(text), player, args)
if message=="print" then
print(message)
end
end
Fatihmilano
« Citoyen »
1401790320000
    • Fatihmilano#0000
    • Profil
    • Derniers messages
    • Tribu
#76
  0
Neonstrayzer a dit :
2 sini birden kullanabilirsin.
function eventChatCommand(player, message)
local args = string.split(message, "%s")
local text = table.remove(args, 1)
command.handle(string.lower(text), player, args)
if message=="print" then
print(message)
end
end

:P
a dit :
## Runtime Error : Fatihmilano.lua:2: attempt to call nil

:P
Neonstrayzer
« Citoyen »
1401792840000
    • Neonstrayzer#0000
    • Profil
    • Derniers messages
    • Tribu
#77
  0
Fatihmilano a dit :
:P
:P

Handler scriptinindeki chat command fonksiyonuna -,-
Lovadded
« Citoyen »
1401794040000
    • Lovadded#5374
    • Profil
    • Derniers messages
    • Tribu
#78
  0
konuda fail var
Herkese merhaba! Dün size bu tür kodlamalardan bahsetmiştim, ve size kendi kodlarımı vereceğimi söylemiştim, fakat ben fikrimi değiştirip bunu nasıl kullanacbileceğinizi anlatmaya karar verdim.
kullanacbileceğinizi?
Ratinhayovl
« Citoyen »
1422445980000
    • Ratinhayovl#0000
    • Profil
    • Derniers messages
#79
  0
Sağol Kemâl işime yaradı
Ferhatpasa
« Citoyen »
1431622080000
    • Ferhatpasa#0000
    • Profil
    • Derniers messages
#80
  0
Saol :D
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Üst Seviye Lua Kodlamaları
« ‹ 4 / 5 › »
© Atelier801 2018

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

Version 1.27