×

Langue

Fermer
Atelier 801
  • Forums
  • Dev Tracker
  • Connexion
    • English Français
      Português do Brasil Español
      Türkçe Polski
      Magyar Română
      العربية Skandinavisk
      Nederlands Deutsch
      Bahasa Indonesia Русский
      中文 Filipino
      Lietuvių kalba 日本語
      Suomi עברית
      Italiano Česky
      Hrvatski Slovensky
      Български Latviešu
      Estonian
  • Langue
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • [Module API] Errors
« ‹ 11 / 17 › »
[Module API] Errors
Safwanrockz
« Censeur »
1401709920000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#201
  0
You need to type !respawn Name.
Demon
« Citoyen »
1401710460000
    • Demon#3348
    • Profil
    • Derniers messages
#202
  0
Safwanrockz a dit :
You need to type !respawn Name.

Thank You.
Weirdeir
« Citoyen »
1401983340000
    • Weirdeir#0000
    • Profil
    • Derniers messages
    • Tribu
#203
  0
On many minigames, in which #prophunt & #deathmatch some graphics became invisible. In #deathmatch you can't see the canoon countdown, in #prophunt most of the props (you in which, at least for you) are invisible.

Can someone tell me when this is going to get fixed? These minigames are part of my life :/

Sorry if posted in wrong place >.<'
Xenpai
« Citoyen »
1401994080000
    • Xenpai#9332
    • Profil
    • Derniers messages
    • Tribu
#204
  0
Weirdeir a dit :
On many minigames, in which #prophunt &amp;amp; #deathmatch some graphics became invisible. In #deathmatch you can't see the canoon countdown, in #prophunt most of the props (you in which, at least for you) are invisible.

Can someone tell me when this is going to get fixed? These minigames are part of my life :/

Sorry if posted in wrong place &gt;.&lt;'

this bug is Not only in minigames so i don't think they can do much
Neonstrayzer
« Citoyen »
1402064220000
    • Neonstrayzer#0000
    • Profil
    • Derniers messages
    • Tribu
#205
  0
Dobrjik a dit :
[Dobrjik] !respawn
## Argument error.

Script -

function eventChatCommand(name,cmd)
local arg={}
for argument in cmd:gmatch("[^%s]+") do
table.insert(arg, argument);
end
if arg[1]=="respawn" then
tfm.exec.respawnPlayer(arg[2])
end
end

function eventChatCommand(name,cmd)
local arg={}
for argument in cmd:gmatch("[^%s]+") do
table.insert(arg, argument);
end
if arg[1]=="respawn" then
tfm.exec.respawnPlayer(arg[2] or name)
end
end

!respawn Nick
or
!respawn
Sandeeep
« Citoyen »
1402161900000
    • Sandeeep#0000
    • Profil
    • Derniers messages
    • Tribu
#206
  0
problem bur in domination we cant see the flags
Bushmeister
« Consul »
1402164480000
    • Bushmeister#0000
    • Profil
    • Derniers messages
    • Tribu
#207
  0

Neonstrayzer a dit :


function eventChatCommand(name,cmd)
local arg={}
for argument in cmd:gmatch("[^%s]+") do
table.insert(arg, argument);
end
if arg[1]=="respawn" then
tfm.exec.respawnPlayer(arg[2] or name)
end
end

!respawn Nick
or
!respawn

tfm.exec.respawnPlayer() doesn't work ><
Neonstrayzer
« Citoyen »
1402215120000
    • Neonstrayzer#0000
    • Profil
    • Derniers messages
    • Tribu
#208
  0
Bushmeister a dit :


tfm.exec.respawnPlayer() doesn't work &gt;&lt;

It works.
Cheetahkitty
« Citoyen »
1402697400000
    • Cheetahkitty#0000
    • Profil
    • Derniers messages
    • Tribu
#209
  0
1.admins={Hotspotower=true, Neonstrayzer=true, Enomicefare=true}


2.function isAdmin(name)


3. return (admins[name] or false)


4.end


5.players={}


6.feed={text=""}


7.reports={reports=""}
Problem is ## Init Error : For input string: "1.admins"
## [Cheetahkitty] Lua script loaded in 1 ms (4000 max)
Safwanrockz
« Censeur »
1402700700000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#210
  0
Remove the line numbers.
Ygtyk
« Citoyen »
1402755960000
    • Ygtyk#0000
    • Profil
    • Derniers messages
    • Tribu
#211
  0
when i type maps={5122295,0}
it does not work :(

Dernière modification le 1402756020000
Shamousey
« Consul »
1402762440000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#212
  0
Ygtyk a dit :
when i type maps={5122295,0}
it does not work :(

That code itself works fine, but doesn't do anything on its own without other code accompanying it. If you want your own map rotation, take a look at this tutorial.
Mellisme
« Citoyen »
1403717280000
    • Mellisme#0000
    • Profil
    • Derniers messages
    • Tribu
#213
  0
When I try to run the code:

a dit :
ui.addTextArea(0, "<font color="#B9BC2E"><p align="center">Hello</p></font><br>", nil, 805, 395, 170, 200, 0x324650, 0x324650, 1, true)

I get Init Error : Ediz.lua:274: [string "Mellisme.lua"]:9: ')' expected

(that's the 9th line btw)

I checked that I've closed the parenthesis and I've also tried adding multiple ')' to the end of the line.
Eliaseeg
« Citoyen »
1403717760000
    • Eliaseeg#0000
    • Profil
    • Derniers messages
    • Tribu
#214
  0
Mellisme a dit :
When I try to run the code:

I get Init Error : Ediz.lua:274: [string "Mellisme.lua"]:9: ')' expected

(that's the 9th line btw)

I checked that I've closed the parenthesis and I've also tried adding multiple ')' to the end of the line.

Try with this:

this a dit :
ui.addTextArea(0, "<font color='#B9BC2E'><p align='center'>Hello</p></font><br>", nil, 805, 395, 170, 200, 0x324650, 0x324650, 1, true)

Dernière modification le 1403717820000
Mellisme
« Citoyen »
1403718120000
    • Mellisme#0000
    • Profil
    • Derniers messages
    • Tribu
#215
  0
Eliaseeg a dit :
ui.addTextArea(0, "&lt;font color='#B9BC2E'&gt;&lt;p align='center'&gt;Hello&lt;/p&gt;&lt;/font&gt;&lt;br&gt;", nil, 805, 395, 170, 200, 0x324650, 0x324650, 1, true)

Works now. Thanks
Jaedee
1403884140000
    • Jaedee#0000
    • Profil
    • Derniers messages
    • Tribu
#216
[Modéré par Travelingpik, raison : Ask in the utility thread or contact the creator directly. This is offtopic here.]
Scrollerkey
« Citoyen »
1404773040000
    • Scrollerkey#0000
    • Profil
    • Derniers messages
    • Tribu
#217
  0
I am quite new to Lua, and it looks like a good time.

I have an issue in which I have no idea what is wrong:


function eventKeyboard(playerName, keyCode, down, x, y)
keyCode = 32
if down == true then
tfm.exec.giveCheese(playerName)
end
end


This is to give cheese to a player when they press spacebar. No errors come up, but nothing happens when I press spacebar.

ALSO: What does the player X and Y positions have to do with anything?
Shamousey
« Consul »
1404776940000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#218
  0
You need to bind the key to the player before any events will be called. Try adding this to the end of your script.

tfm.exec.bindKeyboard("Scrollerkey",32,true,true)

The X and Y positions are the co-ordinates on the map that the player is at when they press the key. This is useful if you want to do something like #deathmatch and how it spawns cannons relative to a player's position.

Dernière modification le 1404777000000
Cosmintepei
1405508580000
    • Cosmintepei#0000
    • Profil
    • Derniers messages
#219
[Modéré par Travelingpik, raison : Old forums are gone, confusing post.]
Fwuffehfirah
1407325320000
    • Fwuffehfirah#0000
    • Profil
    • Derniers messages
#220
[Modéré par Travelingpik]

Dernière modification le 1407325500000
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • [Module API] Errors
« ‹ 11 / 17 › »
© Atelier801 2018

Equipe Conditions Générales d'Utilisation Politique de Confidentialité Contact

Version 1.27