| |
| « Consul » 1393837920000
| 0 | ||
Immagetcheez a dit : *extremely late response ;;* The servers were acting a little derpy last week, it all seems to be sorted now though, luckily! |
| 1393839720000
| | ||
| [Modéré par Bolinboy, raison : Spam.] |
| 0 | ||
| I got ## Init Error : Ygtyk.lua:4: attempt to index ? (a nil value) ## [Ygtyk] Lua script loaded in 1 ms (4000 max) s And i did every thing write my script was -- hello.lua -- the first program in every language io.write("Hello world, from ",_VERSION,"!\n") |
| « Consul » 1393975800000
| 0 | ||
| As stated in the Module API FAQ. a dit : Not all Lua functions are available in Transformice, you can see which ones are available in the documentation in the announcements board. |
| 0 | ||
Shamousey a dit : Oh ok ty |
| « Citoyen » 1394651760000
| 0 | ||
Shamousey a dit : And loadscript / loadfile doesn't exist either. and MANY other modules arean't in the Transformice Lua Library |
| « Censeur » 1394656740000
| 0 | ||
Abdeltif a dit : It's pretty unquestionable that these don't exist (loadscript/loadfile would make no sense if embedded within TFM's Lua library). Unlike the io package, io.write() would likely do what print() does, and io.read() would take the chat command as a user input, hence why Shamo stated this. |
| 1394846460000
| | ||
| [Modéré par Takumisyn, raison : Spam] |
| 0 | ||
a dit : ## Init Error : Aritxy.lua:4: Lua destroyed : Runtime too long! Why? |
| 0 | ||
Aritxy a dit : Think about where you need to place your "end"s. Indentions don't matter in lua. |
| « Citoyen » 1395617640000
| 0 | ||
Aritxy a dit : n will always be the same so the loop will be infinit and simply : n(with is 1)%3 == 1 Infinit loop, TFM = ERROR ! ERROR ! ERROR ! screwing machine >.> So, you need to order your code n=n+1 should be the first line in the loop Then it checks if it is divisible by 3 Did you mean this ?: a dit : |
| « Citoyen » 1395846900000
| 0 | ||
| ## Init Error : Ediz.lua:274: [string "Magicdasha.lua"]:15: unexpected symbol how i fix that? |
| « Citoyen » 1395869640000
| 0 | ||
Magicdasha a dit : It means on line 15 of your code, there is a problem |
| « Citoyen » 1395925320000
| 0 | ||
Magicdasha a dit : a dit : ERROR : unexpected symbol Why ? To create a table, all of the key-values must be betweed { and } Instead of putting { I wrote [ [ and ] are unexpected symbols This is just an example, you wrote something wrong in line 15 then. |
| « Citoyen » 1395965640000
| 0 | ||
| Doge in #control??? SO FUN! XD |
| « Citoyen » 1396003200000
| 0 | ||
| Edited |
| « Citoyen » 1396018380000
| 0 | ||
Fiermousel a dit : First you define the variable players as table and add keys and values: players={} keys[name] = {} system.bindMouse(name, true) Then you use it to iterate through the playerList which overwrites it: for name,players in pairs(tfm.get.room.playerList) do Then you try to use a key that only exists in the table that was overwritten: if players[name].removeTime==0 then You will probably want to use two different variables for this. |
| 0 | ||
| ## Init Error : multiple points OMG This: version=0.0.2 fixed, I wrote string |
| « Citoyen » 1396632420000
| 0 | ||
| LUA broken... |
| « Citoyen » 1396640640000
| 0 | ||
Fatihmilano a dit : Yep. |