![]() |
![]() ![]() « Citoyen » 1407343560000
| 0 | ||
I just found another error, Runtime error: attempt to index ? (a nil value) It gave me a line and is not anything wrong in it. |
![]() ![]() « Consul » 1407343800000
| 0 | ||
Begoxary a dit : The issue isn't necessarily on that line, but it could be lines around it. As it's referring to a nil value, whatever you're trying to get is never initially created. If you want help, I recommend you read the opening post, in particular: a dit : |
![]() ![]() « Citoyen » 1407344760000
| 0 | ||
Shamousey a dit : Oh thank you! I've fixed it :D |
![]() 1409274660000
| | ||
[Modéré par Sabusha, raison : Off topic] |
![]() ![]() « Citoyen » 1411243080000
| 0 | ||
The scripts that other people made worked long time ago, but when I tried it this time, it gave me Init Error : 110678, Init Error : 110688 It wasn't just one script, all the scripts I tried didn't work |
0 | ||
echoflower a dit : The scripts you try to load are probably still working, but LUA is a bit broken in tribe houses right now. The number after Init Error displays how much players tried to run a lua script. Dernière modification le 1411246920000 |
![]() ![]() « Citoyen » 1414651920000
| 0 | ||
i suck at lua so help me. for players in pairs(tfm.get.room.playerList) do tfm.exec.bindKeyboard(playerName, 32, true, true) function eventKeyboard(playerName, keyCode, True, x, y) if key==32 then tfm.exec.respawnPlayer(playerName) end end end tfm.exec.bindKeyboard : argument 1 can't be NIL. |
![]() ![]() « Consul » 1414678440000
| 0 | ||
Change "for players in pairs(tfm.get.room.playerList) do" to "for playerName,player in pairs(tfm.get.room.playerList) do" |
![]() ![]() « Citoyen » 1414710960000
| 0 | ||
Leeyangyi a dit : You may want to change it to this: function eventNewPlayer(name) tfm.exec.bindKeyboard(name,32,true,true) end for i,v in pairs(tfm.get.room.playerList) do eventNewPlayer(i) end function eventKeyboard(name,key,down,x,y) if key==32 then tfm.exec.respawnPlayer(name) end end Dernière modification le 1415751660000 |
![]() ![]() « Citoyen » 1416278340000
| 0 | ||
(I realize I'm double posting but I wanted people to see that there was a new post) OK, so, I tried loading an XML with a chat command, but it said, "Argument must be integer." Here's my whole code: http://pastebin.com/VbQyjw2p. The chat command is on line 326. |
![]() ![]() « Consul » 1416282780000
| 0 | ||
itchyboy a dit : It looks like you're splitting your args table on each space character, and since an XML has spaces in it it's being split into multiple parts. You're actually trying to load the XML <C><P, the next argument would be L="2400" and so on. |
![]() ![]() « Citoyen » 1416315300000
| 0 | ||
shamousey a dit : The actual cause of the error is that the < character is escaped as &lt; in input from chat commands, so the first character is & which is not recognised as XML and parsing it as number fails. You should unescape it before passing it to the newGame function: tfm.exec.newGame(string.replace(input, "&lt;", "<")) |
![]() ![]() « Citoyen » 1416359820000
| 0 | ||
Oh, thank you, that's actually really smart |
0 | ||
My friend tried running a ffa bootcamp script which is pretty massive, and she got this error: Init Error : [string "Pawgold.lua"]:74: 'then' expected Part of the script she thinks is wrong: if arg[1]=="ban"..playerName..""..command: sub(5), nil" and admin[name] then It's at line 74 |
![]() 1419162180000
| | ||
[Modéré par Shamousey, raison : Spam / adds nothing to the thread.] |
![]() ![]() « Citoyen » 1419193920000
| 0 | ||
¡Hi, i'm coming to ES. I need a help form this script function eventKeyboard(name, key, down, x,y) if key==83 then print(name..", poll: Sí") end end for name, player in pairs(tfm.get.room.playerList) do tfm.exec.bindKeyboard(name, 83,false,true) end function eventKeyboard(name, key, down, x,y) if key==78 then print(name..", poll: No") end end for name, player in pairs(tfm.get.room.playerList) do tfm.exec.bindKeyboard(name, 78,false,true) end Why the S key did not appear in print when the trouble? I need help, I'm noob with this (hahaha) :( |
![]() « Citoyen » 1419194580000
| 0 | ||
quesoyquesos a dit : function eventKeyboard(name, key, down, x,y) if key==83 then print(name..", poll: Sí") end if key==78 then print(name..", poll: No") end end for name, player in pairs(tfm.get.room.playerList) do tfm.exec.bindKeyboard(name, 78,false,true) tfm.exec.bindKeyboard(name, 83,false,true) end |
![]() ![]() « Citoyen » 1419200280000
| 0 | ||
quesoyquesos a dit : The reason the first eventKeyboard() did not work is because you redefined it later. |
![]() ![]() « Consul » 1422992880000
| 0 | ||
Why tfm.exec.removeObject(id) and tfm.exec.moveObject(id, x, y) don't work? What's the problem? a dit : |
![]() ![]() « Censeur » 1422998040000
| 0 | ||
Bushmeister a dit : Because the ID argument in tfm.exec.moveObject() is the ID of the object which is returned from the function tfm.exec.addShamanObject(); id=tfm.exec.addShamanObject(54, 400, 200, 0, 0, 0, false) tfm.exec.moveObject(id,200,100) |