![]() |
![]() ![]() « Consul » 1392415560000
| 0 | ||
function.startNewGame isn't how you define a function. You already define functions in other places in this script that work. You can try function startNewGame() or alternatively startNewGame=function() Your last 4 lines has an elseif starting from nowhere, however. |
![]() ![]() « Citoyen » 1392489960000
| 0 | ||
Bethdacat a dit : it'd help if you put the code in a quote... anyways, i believe in your last part fo the code you're making it so if all the players are dead then we start a new game right? well shamousey has a code for you that im giving you for the future, it'll make it so when all players are dead then we start a new game Shamousey a dit : From Topic-457950 |
![]() ![]() « Citoyen » 1392898380000
| 0 | ||
Runtime Error :attempt to call table What does this mean? |
![]() ![]() « Citoyen » 1392898560000
| 0 | ||
Can testFuction be used to indicate all players a name or a question ? |
![]() ![]() « Censeur » 1392905460000
| 0 | ||
Barsems a dit : This mostly happens when trying to call a table with a for loop operation without the pairs() function: a dit : Correction: a dit : |
0 | ||
function startNewGame(boxing) tfm.add boxing maps(*899,90)for player.name(tfm.room)do tfm exe move(o,o,false,boxing) end end [url]____________________[/url] ## Init Error : Musugas.lua:98: [string "Ygtyk.lua"]:2: '=' expected and no work |
![]() ![]() « Citoyen » 1392986220000
| 0 | ||
Ygtyk a dit : I really dont think that''s a scipt I mean startNewGame(boxing) makes no type of sense if it would have been "map boxing" with codes for the maps to play it randomly then maybe. |
![]() ![]() « Citoyen » 1393017840000
| 0 | ||
Ygtyk a dit : Ok. First of all, you haven't defined boxing anywhere. For example: maps = {0, 1, 2} tfm.exec.newGame(maps[math.random(#maps)]) in this way, it'll play the maps from the maps table! Secondly, there is nothing such as 'Function startNewGame' unless you want to create your own function which is unlike with your code. If you have learnt lua/read the API. You can't do tfm.add. It's must me 'tfm.exec.yourfunction(yourthings)' Also, your code says tfm.add boxing maps. Where are boxing and maps defined? tfm.add boxing maps(*899,90)for, <what? I think this is ment to be in the next line. Second to last: it should be : for name,player in pairs(tfm.get.room.playerList) do end lastly, what is tfm exec move? If you're meant to move the player: movePlayer String playerName, Int xPosition, Int yPosition, Boolean offset, Int xSpeed, Int ySpeed, Boolean offset Defines the speed and position of a player. or if not then always remember tfm.exec. ! Hope I helped and understood your script properly if not I'm sorry and please speak to me in game! |
![]() ![]() « Citoyen » 1393029360000
| 0 | ||
Any script that needs to be defined has to be at the beginning like a code I was working on a website var x = 11; That notifies what it's supposed to do but only at beggining makes the code work. |
![]() ![]() « Citoyen » 1393073760000
| 0 | ||
What does this mean ## Init Error : 15341 |
0 | ||
Barsems a dit : Oyga a dit : ^ |
![]() ![]() « Citoyen » 1393074900000
| 0 | ||
Oyga a dit : It's Turkish. |
0 | ||
why I appear: ## Init Error : 16233 |
![]() ![]() « Citoyen » 1393077840000
| 0 | ||
Guys, lua isn't working in tribe houses. That's all. It's the same for everyone. |
![]() ![]() « Citoyen » 1393080660000
| 0 | ||
Hophipmice a dit : Really? Omg why? e: it's just a bug or something? |
![]() « Citoyen » 1393083360000
| 0 | ||
Hophipmice a dit : OMG D: |
0 | ||
Hophipmice a dit : Do you mean something like this[url]|[/url] function newgame(boxing) ---Maps--- maps={@2838853} tfm.exec.newGame(maps[math.random(#maps)]) ---Admins--- admins={} ---Help--- Knock the other player off the boxing mach and you will win. do tfm.exe.{o,o,true,false,} tfm.newgame.for players name{tfm.room} our like this function newgame(boxing) ---Maps--- maps={@2838853} ---Admins--- admins={Ygtyk} ---Help--- Knock the other player off the boxing mach and you will win. do tfm.exe.{o,o,true,false,} tfm.newgame.for players name{} or like this function newgame(boxing) ---Maps--- maps={@2838853} ---Admins--- admins={Ygtyk} ---Help--- Knock the other player off the boxing mach and you will win. do tfm.exe.{o,o,true,false,} tfm.newgame.for players name{} |
![]() ![]() « Citoyen » 1393114080000
| 0 | ||
^ Ygtky basically kinda like that but your variables must be explained. |
![]() ![]() « Citoyen » 1393159680000
| 0 | ||
Ygtyk a dit : Not exactly... PM me in game and I'll help you. E: ![]() I see why you used that... |
![]() ![]() « Citoyen » 1393435080000
| 0 | ||
So I'm really confused Are modules down? Or am typing things wrong? The only room I've connected to succesfully was PewPew. |