×

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
  • /
  • Archives
  • /
  • Seção Editor de Mapas e Modules
  • /
  • Tópico de dúvidas
« ‹ 10 / 14 › »
Tópico de dúvidas
Stheblindd
« Citoyen »
1439223840000
    • Stheblindd#0000
    • Profil
    • Derniers messages
    • Tribu
#181
  0
binda essas teclas (tfm.exec.bindKeyboard) e quando alguém apertar (eventKeyboard) é só fazer spawnar um cn perto (tfm.exec.addShamanObject)
Hugotitas
« Citoyen »
1439255580000
    • Hugotitas#0000
    • Profil
    • Derniers messages
    • Tribu
#182
  0
tmf.exe.NewGamer("@4889720")

end

tfm.exec.setUIMapName("Mini-casa do Hugotitas")
lights={ "26" , "27"}
pAtOnce=50

end

function eventChatCommand(p, cmd)

if cmd == "ballon" then
tfm.exec.setballon(p)

end

end
function eventEmotePlayed(playerName,emote)
if emote==0 then
ui.addPopup(0, 0, "Para subi nela ussa o comando !ballon, e vai suji um balão pra vc subi espero que goste e.e ;", playerName, 300, 175, 200, true)
end
end

ui.addPopup(0, 0, "espero que goste da minha casa obg por mim ajuda Comandos: !ballon;,by:Hugotitas

Oque esta errado
Rolonudo
« Citoyen »
1439255820000
    • Rolonudo#0000
    • Profil
    • Derniers messages
    • Tribu
#183
  0
quando você digita function [...]([...]) [...] (cria uma função), você deve por end no final, caso contrário, o end é dispensável. no caso de usar apenas tfm.exec.[...]([...]), você está chamando uma função.

quando criar uma função, use end. quando chamar, não use.
Hugotitas
« Citoyen »
1439256300000
    • Hugotitas#0000
    • Profil
    • Derniers messages
    • Tribu
#184
  0
Como assim
Rolonudo
« Citoyen »
1439256660000
    • Rolonudo#0000
    • Profil
    • Derniers messages
    • Tribu
#185
  0
você está indo bem pra um iniciante

mas podia seguir o conselho e aprender o básico sobre a linguagem de programação lua e depois associar com a api do transformice.
Hugotitas
« Citoyen »
1439256960000
    • Hugotitas#0000
    • Profil
    • Derniers messages
    • Tribu
#186
  0
Obg, Obg pelala ajuda eu vou ler ok
Hugotitas
« Citoyen »
1439732160000
    • Hugotitas#0000
    • Profil
    • Derniers messages
    • Tribu
#187
  0
tfm.exeNewGamer("@4889720")

tfm.exec.setUIMapName("Mini-casa do Hugotitas")
lights={ "26" , "27"}
pAtOnce=50


function eventChatCommand(p, cmd)

if cmd == "ballon" then
tfm.exec.setballon(p)
end

function eventEmotePlayed(playerName,emote)
if emote==0 then
ui.addPopup(0, 0, "Para subi nela ussa o comando !ballon, e vai suji um balão pra vc subi espero que goste e.e ;", playerName, 300, 175, 200, true)

ui.addPopup(0, 0, "espero que goste da minha casa obg por mim ajuda Comandos: !ballon;,by:Hugotitas
end
end
end

oque esta errado
Taurino
« Citoyen »
1439734800000
    • Taurino#8190
    • Profil
    • Derniers messages
    • Tribu
#188
  0
tfm.exeNewGamer("@4889720")

tfm.exec.setUIMapName("Mini-casa do Hugotitas")
lights={ "26" , "27"}
pAtOnce=50


function eventChatCommand(p, cmd)

if cmd == "ballon" then
tfm.exec.setballon(p)
end
end

function eventEmotePlayed(playerName,emote)
if emote==0 then
ui.addPopup(0, 0, "Para subi nela ussa o comando !ballon, e vai suji um balão pra vc subi espero que goste e.e ;", playerName, 300, 175, 200, true)

ui.addPopup(0, 0, "espero que goste da minha casa obg por mim ajuda Comandos: !ballon;,by:Hugotitas
end
end


consertei o fechamento de funções, mas tem algo errado nessa linha descolorida
Hugotitas
« Citoyen »
1439735820000
    • Hugotitas#0000
    • Profil
    • Derniers messages
    • Tribu
#189
  0
Sempre que eu coloco meu script aprese isso :• # [*Holi Family] Init Error : [string "Hugotitas.lua"]:19: unfinished string
• # [*Holi Family] [Hugotitas] Lua script loaded in 1 ms (4000 max)
Booleando
« Citoyen »
1439736180000
    • Booleando#0000
    • Profil
    • Derniers messages
    • Tribu
#190
  0
Hugotitas a dit :
tfm.exeNewGamer("@4889720")

tfm.exec.setUIMapName("Mini-casa do Hugotitas")
lights={ "26" , "27"}
pAtOnce=50


function eventChatCommand(p, cmd)

if cmd == "ballon" then
tfm.exec.setballon(p)
end

function eventEmotePlayed(playerName,emote)
if emote==0 then
ui.addPopup(0, 0, "Para subi nela ussa o comando !ballon, e vai suji um balão pra vc subi espero que goste e.e ;", playerName, 300, 175, 200, true)

ui.addPopup(0, 0, "espero que goste da minha casa obg por mim ajuda Comandos: !ballon;,by:Hugotitas
end
end
end

oque esta errado




tfm.exec.newGame("@4889720")
tfm.exec.setUIMapName("Mini-casa do Hugotitas")

function eventChatCommand(p, cmd)
info=tfm.get.room.playerList


if cmd == "ballon" then
tfm.exec.addShamanObject(28,info.x,info.y)
end
end

function eventEmotePlayed(playerName,emote)
if emote==0 then
ui.addPopup(0, 0, "Para subi nela ussa o comando !ballon, e vai suji um balão pra vc subi espero que goste e.e ;", playerName, 300, 175, 200, true)
ui.addPopup(0, 0, "espero que goste da minha casa obg por mim ajuda Comandos: !ballon;,by:Hugotitas",playerName)
end
end

Taurino
« Citoyen »
1439736540000
    • Taurino#8190
    • Profil
    • Derniers messages
    • Tribu
#191
  0
o id continua o msm
Booleando
« Citoyen »
1439736600000
    • Booleando#0000
    • Profil
    • Derniers messages
    • Tribu
#192
  0
só muda
Hugotitas
« Citoyen »
1440122760000
    • Hugotitas#0000
    • Profil
    • Derniers messages
    • Tribu
#193
  0
Booleando manda seu script de survivor eu quero joga
Hugotitas
1440125580000
    • Hugotitas#0000
    • Profil
    • Derniers messages
    • Tribu
#194
[Modéré par Alriy]
Hugotitas
1440202320000
    • Hugotitas#0000
    • Profil
    • Derniers messages
    • Tribu
#195
[Modéré par Alriy]
Jellymichey
« Censeur »
1441042440000
    • Jellymichey#0000
    • Profil
    • Derniers messages
    • Tribu
#196
  0
alguém pode consertar este script?
eu n aprendi lua e apenas aprendi um pouquinho com os vosso script's
script
print('mapas do jellymichey')
tfm.exec.newGame(mapas[math.random(#mapas)])
mapas=('@6106483','@6109081','@6101125','@6101315','@6102127','@6104104','@6104463','@6110870','@6111218','@6114423','@6116313','@6118561','@6129801','@6131577','@6134254','@6136924','@6137016','@6140082','@6140943','@6141094','@6141471','@6141646','@6150180','@6150704','@6150437','@6152667','@6159053','@6161417','@6161535','@6163354','@6166364','@6165528','@6167236','@6167482','@6172782','@6175318','@6175471','@6181003','@6181428','@6097174','@6097093','@6186134','@6194638','@6195545','@6203038','@6203147','@6211162','@6211586','@6213397','@6219889')
end
Mitoluizmice
1441143240000
    • Mitoluizmice#0000
    • Profil
    • Derniers messages
    • Tribu
#197
[Modéré par Excasr, raison : Inadequado.]

Dernière modification le 1441143300000
Mini123
« Citoyen »
1441252440000
    • Mini123#0000
    • Profil
    • Derniers messages
#198
  0
Olha, eu to com um problema aqui, não sei é bug ou se dá pra melhorar. Eu invoco um objeto, pra mim não buga, mas pro resto da sala buga, eu testei isso com outra conta e bugou também, ele meio que invoca 2x, e só a 1° vez é colidível mas só vemos pelo movimento da 2° vez. No meu caso é uma bola (id 6)
Mcmcmarry
« Citoyen »
1441304520000
    • Mcmcmarry#0000
    • Profil
    • Derniers messages
    • Tribu
#199
  0
gostaria de saber como funciona o API lua, tenho um código mas não funciona, não sei se esse código não existe ou eu não sei usar o /lua
[spoiler][/dsfsdf%all
%100frases>%100
%10minutes
%alldate18112013
%expiration>never
%-transformiceaccountpaymentID
%19430adS930Soo9 - #
$successfulpayment$]
Stheblindd
« Citoyen »
1441312440000
    • Stheblindd#0000
    • Profil
    • Derniers messages
    • Tribu
#200
  0
são só palavras com símbolos aleatórios
  • Forums
  • /
  • Transformice
  • /
  • Archives
  • /
  • Seção Editor de Mapas e Modules
  • /
  • Tópico de dúvidas
« ‹ 10 / 14 › »
© Atelier801 2018

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

Version 1.27