![]() |
![]() ![]() « Citoyen » 1426796700000
| 0 | ||
velspar a dit : This function may be used by tables, not numbers. |
![]() « Citoyen » 1426798320000
| 0 | ||
I know Im not using numbers(i think...) Pretty much what im doing: players = {} function eventNewPlayer(name) players[name] = {id = table.getn(players)} end So the their ID is however many is in the table when they join? I think I might see the problem, but cant get lua to work... Will have to get into this some other time :P |
![]() ![]() « Citoyen » 1426802520000
| 0 | ||
players = {} c=1 function eventNewPlayer(name) players[name] ={id=c} c=c+1 end for k in pairs(tfm.get.room.playerList) do eventNewPlayer(k) end |
![]() « Citoyen » 1426814940000
| 0 | ||
Found my mistakes, thanks for the help ;) Dernière modification le 1426826880000 |
![]() 1427583480000
| | ||
[Modéré par Shamousey, raison : OP quote.] |
0 | ||
function eventNewGame() textArea = 0 ui.addTextArea(textArea, "", nil, -400, -300, 1600, 1200, nil, nil, 0, true) ended = nil for name, player in pairs(tfm.get.room.playerList) do shaman[name] = player.isShaman or nil < mistake here index expected, got nil tfm.exec.setPlayerScore(name, 1, true) if player.inHardMode == 2 then tfm.exec.killPlayer(name) end end end |
![]() ![]() « Citoyen » 1429475880000
| 0 | ||
Xxxgameover a dit : |
![]() 1429622460000
| | ||
[Modéré par Shamousey, raison : Being banned isn't a module error. Talk to a moderator about it instead of posting it on the forums.] |
![]() « Citoyen » 1429728780000
| 0 | ||
Just wondering if this a problem or not: tfm.exec.movePlayer(playerName, xPosition, yPosition, offset) Whenever I make the x and y Positions 0, I get this: "Argument error." If this is not a problem, it would be nice if this could be specified in the Lua documentation threads spoiler thing. I spent atleast 25 minutes trying to figure out where that error was coming from. '-' |
![]() ![]() « Citoyen » 1431304140000
| 0 | ||
Using this: http://pastebin.com/tKG2SJ6Y Mice aren't teleporting. Map is loading but, mice aren't teleporting. Init Error : [string "Pinkiepawz.lua"]:156: 'end' expected (to close 'function' at line 145) |
![]() ![]() « Citoyen » 1431395280000
| 0 | ||
pinkiepawz a dit : Did you copy the whole thing? When I tried it, it seemed fine. |
![]() ![]() « Citoyen » 1433276280000
| 0 | ||
Why I can't bind 'W' key? I can only up arrow :( There are more codes for a key? I think I used 87... |
![]() ![]() « Consul » 1433285640000
| 0 | ||
Alexunutrei a dit : Some keycodes are different with AZERTY/QWERTY keyboard. Letters W and Z are swapped, and letters Q and A are swapped. Try binding the opposite one to get it to work. |
![]() ![]() « Citoyen » 1437713280000
| 0 | ||
a dit : I want it to type a !mapcode to change the map to the mapcode,but it doesnt work |
0 | ||
Philarry a dit : so, you don't need the condition if, just use this: function eventChatCommand(name,anil) tfm.exec.newGame(anil) end |
0 | ||
Eshkation a dit : Need pcall: function eventChatCommand(name,anil) pcall(tfm.exec.newGame, anil) end |
![]() « Censeur » 1441381260000
| 0 | ||
!Good job shamo, Thank Dernière modification le 1451247300000 |
![]() ![]() « Citoyen » 1445297700000
| 0 | ||
Some scripts which used to work aren't working anymore. I have no idea why. |