![]() |
![]() ![]() « Citoyen » 1445298060000
| 0 | ||
Fofonams a dit : Should be fixed tomorrow. Pikashu is on it |
![]() ![]() « Citoyen » 1445996100000
| 0 | ||
tfm.exec.setNameColor : argument 2 can't be NIL. I got this. And the players name color wasn't reset. setNameColor a dit : |
![]() ![]() « Censeur » 1448477040000
| 0 | ||
Could you post the code you're working on? |
![]() ![]() « Citoyen » 1449992100000
| 0 | ||
Safwanrockz a dit : I thought setNameColor("Name", nil) resets a player's name color because shamousey wrote so in Module FAQ & Documentation. but maybe it's not nil but 0. API ERROR: tfm.exec.addPhysicObject cannot add a water ground. When we call addPhysicObject(id, x, y, {type=9}), a ground which looks water but has collision with mice appears. |
![]() ![]() « Consul » 1450013460000
| 0 | ||
gekkeiju a dit : Yeah, that was my mistake, sorry ^^" I'd fixed it in the documentation since then. |
![]() ![]() « Citoyen » 1451015280000
| 0 | ||
a dit : what wrong? i'm write this code: if tfm.get.room.xmlMapInfo.author ~= nil then map.author = tfm.get.room.xmlMapInfo.author else map.author = 'No map author available :(' end Dernière modification le 1451015760000 |
![]() ![]() « Citoyen » 1451044200000
| 0 | ||
Candrai a dit : Which line is the 1700th ? |
0 | ||
Candrai a dit : make sure the table map and tfm.get.room.xmlMapInfo exists |
![]() ![]() « Citoyen » 1451156100000
| 0 | ||
Eshkation a dit : and if that's not the problem, make sure that the table map exists (that's why I asked which line) |
![]() ![]() « Citoyen » 1451185860000
| 0 | ||
Abdeltif a dit : ![]() |
![]() ![]() « Consul » 1451211960000
| 0 | ||
Candrai a dit : tfm.get.room.xmlMapInfo is available from next round after you load a script. For example, this code will not work a dit : But this will work fine after new round a dit : /np @1125782 You have to check tfm.get.room.xmlMapInfo instead of tfm.get.room.xmlMapInfo.author, because it will cause an error when you try to get(the state of) an element from nil table. |
![]() ![]() « Citoyen » 1451226840000
| 0 | ||
Bushmeister a dit : thanks :D it worked. |
0 | ||
a dit : when i type !help in the chat, this error comes out: Runtime Error : org.luaj.vm2.LuaError: Mousetat.lua:2: LUA on room [*Natal] unloaded. Reason : Asked by user Can someone help or is this a bug? Edit: Oh its fixed nvm Dernière modification le 1451609580000 |
![]() ![]() « Citoyen » 1451779920000
| 0 | ||
a dit : Init Error : [string "Philarry.lua"]:5: ')' expected |
![]() ![]() « Consul » 1451781600000
| 0 | ||
On line 5 where you're having this issue, you're doing some odd things with the strings. ![]() 1. You're ending the string pre-emptively, the HTML <font> tag afterwards also needs to be encapsulated in a string. 2. You're ending the string but the second quote is starting a new one unnecessarily. Additionally in the snippet you've given, you're trying to use the time variable before you're setting it. a dit : |
![]() ![]() « Citoyen » 1451846580000
| 0 | ||
Shamousey a dit : thanks it works now |
![]() ![]() « Citoyen » 1451935440000
| 0 | ||
Code a dit : In the line of "tfm.exec.killPlayer(answer)" it gives me an "attempt to call nil" error. I wanted a pop up to appear (that works fine) that would ask me who do I want to kill, so when I type a name (any name) it would kill that person. Thanks! |
![]() ![]() « Citoyen » 1451964360000
| 0 | ||
exec.killPLayer -> exec.killPlayer ? Dernière modification le 1451964420000 |
![]() ![]() « Citoyen » 1451968800000
| 0 | ||
gekkeiju a dit : I can't believe it. I'm blind. Thank you so much. |
![]() 1471907760000
| | ||
[Modéré par Whiskypickle, raison : Por favor, não fale português no fórum inglês. Procure pela bandeira no canto superior direito, selecione a brasileira e vá para o fórum BR.] |