![]() |
![]() ![]() « Consul » 1389757140000
| 0 | ||
Luanpow a dit : It works fine for me. You'd be better off not sharing scripts that show people's XMLs however. |
![]() ![]() « Citoyen » 1389793140000
| 0 | ||
What error/errors? ui.addTextArea(987,"Oyuncuya Bir Rütbe Ver", NIL, 400, 200, 100, 100, 0xFFFF, 0xFFFFF, 0.6,true) ui.addTextArea(182,"<p align='center'><a href='event:yardimci'><b><R>Yardımcı</b></a></p>",name,400,284,100,16,1,1,0.8,true) ui.addTextArea(2,"<p align='center'><a href='event:moderator'><b><R>Mod</b></a></p>",name,400,258,100,16,1,1,0.8,true) function eventTextAreaCallback(id, name, callback) if callback=="yardimci" then ui.addPopup(934,2,"Yardımcıyı Seç",name,350,110,200) function eventPopupAnswer(popupId,playerName,command) tfm.exec.setNameColor(command,0xFFFF) end end if callback=="moderator" then ui.addPopup(941,2,"Moderatörü Seç",name,350,110,200) function eventPopupAnswer(popupId,playerName,command) tfm.exec.setNameColor(command,0xFF000) end end end Argument error. (Edit) |
0 | ||
Barsems a dit : a dit : Following the syntax always helps you know |
![]() 1389939960000
| | ||
[Modéré par Icewolfbob, raison : Please speak English here. Thank you!] |
![]() ![]() « Citoyen » 1389995100000
| 0 | ||
for name,player in pairs(tfm.get.room.playerList) do for i,key in ipairs({49,50}) do tfm.exec.bindKeyboard(name,key,true,true) end end function eventKeyboard(name, key, down, x, y) if key == 49 thend tfm.exec.killPlayer(name) tfm.exec.addShamanObject(54, x, y, 0, 0, 0, false) end end if key == 50 then tfm.exec.respawnPlayer(name) tfm.exec.movePlayer(name, x, y, true) end end Init Error : Ediz.lua:267: [string "Barsems.lua"]:466: ')' expected [Barsems] Lua script loaded in 2 ms (4000 max) |
![]() ![]() « Censeur » 1390001100000
| 0 | ||
You've got plenty of errors in your script, use this: a dit : |
![]() ![]() « Citoyen » 1390327500000
| 0 | ||
Safwanrockz a dit : Thanks. |
![]() ![]() « Citoyen » 1390411380000
| 0 | ||
What errors? function eventEmotePlayed(playerName,id) if id==8 then ui.addTextArea(397,"Hi",name, x, y-30, 150, 100, 0xFFFF, 0xFFFFF, 0.6,true) end end ## Runtime Error : Barsems.lua:506: attempt to perform arithmetic __sub on nil and number |
![]() ![]() « Consul » 1390412160000
| 0 | ||
Your function passes the argument "playerName" but you're trying to use it as "name". HEX numbers are meant to be 6 characters long, while you have 4 and 5 long variations it should be "0xFFFFFF". The actual error at hand is likely down to you not having "x" and "y" variables. |
![]() ![]() « Citoyen » 1390412280000
| 0 | ||
Thanks |
![]() « Citoyen » 1390420200000
| 0 | ||
What is error ? if callback=="friendlist" then ui.addTextArea(6,"Friends<br>"..players[name].friends.."",name,650,20,50,50) end ## Runtime Error : Neonstrayzer.lua:47: attempt to index ? (a nil value) |
![]() ![]() « Censeur » 1390423020000
| 0 | ||
Neonstrayzer a dit : The code doesn't make sense, you should try putting eventTextAreaCallback(name,id,cb) at the beginning of the script, and end it at the end of it. Anyway, it wouldn't work because there is no "friendlist" callback. |
![]() « Citoyen » 1390423920000
| 0 | ||
Safwanrockz a dit : Already have to eventTextAreaCallback(name,id,cb). But, to be easy to that, I didn't want to specify. EDİT : Solve to problem :) red={} blue={} function eventKeyboard(name,key,down,x,y) if key==17 then ui.addTextArea(89,"Red Team \n" ..text.red.. "\n Blue Team" ..text.blue.."",name,50,50,200,200,0xff0000,0x00ffff,2.5)--cipsden yardı alsak end end function eventNewPlayer(name) tfm.exec.bindKeyboard(name,17,true,true) makeTeams() end for name,player in pairs(tfm.get.room.playerList) do eventNewPlayer(name) end What is error ? |
![]() 1390476120000
| | ||
[Modéré par Icewolfbob, raison : Merged] |
![]() ![]() « Censeur » 1390490460000
| 0 | ||
There is no function makeTeams() in the script. |
![]() « Citoyen » 1390683240000
| 0 | ||
for i in pairs(tfm.get.room.playerList) do eventEmotePlayed(i,0) end What is error ? |
![]() ![]() « Censeur » 1390748760000
| 0 | ||
I'm guessing you want to make everyone in the room dance, which is impossible. eventEmotePlayed is an event, not a function. |
![]() ![]() « Citoyen » 1392041340000
| 0 | ||
(edit) |
![]() ![]() « Citoyen » 1392042060000
| 0 | ||
Barsems a dit : Pretty much everything, do you know anything about Lua? You should give this a read, it may help you out. Topic-365251 |
![]() ![]() « Consul » 1392415200000
| 0 | ||
help = "<BV>Hello! Welcome to #Glitched! <N>Make sure that shaman vampire or vampire does not get you!<J> They will<R> hunt<N> you! ^-^" ui.addTextArea(0, "<a href='event:help'>?</a>", nil) function eventTextAreaCallback(name,id,cb) if cb=="help" then ui.updateTextArea(0, help, nil) end end tfm.exec.setUIMapName("<N>#Glitched") players = {} for name,player in pairs(tfm.get.room.playerList) do table.insert(players,name) end tfm.exec.setVampirePlayer(players[math.random(#players)]) players = {} for name,player in pairs(tfm.get.room.playerList) do table.insert(players,name) end tfm.exec.setShaman(players[math.random(#players)]) function.startNewGame tfm.exec.newGame (maps[math.random(#10)]); end function eventLoop (a, timeLeft) if timeLeft <= 0 then startNewGame(); end end elseif (playersAlive ==0) then startNewGame(); end end [At line 24. What's wrong with this?] |