×

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
« ‹ 5 / 17 › »
[Module API] Errors
Drgenius
« Citoyen »
1386012540000
    • Drgenius#0000
    • Profil
    • Derniers messages
    • Tribu
#81
  0
EDIT: Nevermind
Livcorish
« Citoyen »
1386361320000
    • Livcorish#0000
    • Profil
    • Derniers messages
#82
  0
What preciseley does this mean?
[•] Init Error : For input string: "50function"
I am trying to use the Lights script. Thanks
xoxo
Baasbase
« Citoyen »
1386367200000
    • Baasbase#0095
    • Profil
    • Derniers messages
#83
  0
Livcorish a dit :
What preciseley does this mean?
[•] Init Error : For input string: "50function"
I am trying to use the Lights script. Thanks
xoxo

Make sure you are using proper spacing. If 2 words are added together into 1 word it will cause errors.
Livcorish
« Citoyen »
1386369120000
    • Livcorish#0000
    • Profil
    • Derniers messages
#84
  0
Ohhhh ok thanks!
Baasbase a dit :
Make sure you are using proper spacing. If 2 words are added together into 1 word it will cause errors.
Arber
« Citoyen »
1386417780000
    • Arber#0000
    • Profil
    • Derniers messages
    • Tribu
#85
  0
[Edited] fixed
found the problem ;.;
Leafileaf
« Citoyen »
1386853980000
    • Leafileaf#0000
    • Profil
    • Derniers messages
    • Tribu
#86
  0
Shamo: attempt to call nil when you try to call something that is nil (as a function)
print(undeclared_var) would just print nil.
However calling undeclared_func() would crash the script.
Samsondustin
1387030740000
    • Samsondustin#0000
    • Profil
    • Derniers messages
#87
[Modéré par Icewolfbob, raison : Spam]
Fatihmilano
« Citoyen »
1387100400000
    • Fatihmilano#0000
    • Profil
    • Derniers messages
    • Tribu
#88
  0
http://i.imgur.com/d5OiIfl.jpg
then

http://i.imgur.com/9B12i9G.jpg
http://i.imgur.com/b1A5jFG.jpg
http://i.imgur.com/nqc2Fpz.jpg
EVERYTHING IS BIGGER.

Peynir = Cheese
+Minstens
« Citoyen »
1387104480000
    • +Minstens#0000
    • Profil
    • Derniers messages
    • Tribu
#89
  0
..tfm.get.room.playerList[playerName].tribeName..

=

## Init Error : +Minstens.lua:92: attempt to concatenate nil and string
Abdeltif
« Citoyen »
1387105020000
    • Abdeltif#0000
    • Profil
    • Derniers messages
    • Tribu
#90
  0
+Minstens a dit :
..tfm.get.room.playerList[playerName].tribeName..

=

## Init Error : +Minstens.lua:92: attempt to concatenate nil and string

try to local that befor
like
local tribeName = tfm.get.room.playerList[playerName].tribeName
..tribeName..

Now it shull wokrs
Fatihmilano a dit :
then

EVERYTHING IS BIGGER.

Peynir = Cheese

You should not use html too much in print because that'll hapen
try to only use font color only
NOT EVENT BOLD
Fatihmilano
« Citoyen »
1387105260000
    • Fatihmilano#0000
    • Profil
    • Derniers messages
    • Tribu
#91
  0
Abdeltif a dit :
try to local that befor
like
local tribeName = tfm.get.room.playerList[playerName].tribeName
..tribeName..

Now it shull wokrs

You should not use html too much in print because that'll hapen
try to only use font color only
NOT EVENT BOLD

Thanks!
Safwanrockz
« Censeur »
1387108200000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#92
  0
+Minstens a dit :
..tfm.get.room.playerList[playerName].tribeName..

=

## Init Error : +Minstens.lua:92: attempt to concatenate nil and string

The index of playerList should be a predefined variable;
a dit :

print(tfm.get.room.playerList[playerName].tribeName)

That won't work, because there is no variable called "playerName", but if you did this;
a dit :

function eventChatCommand(playerName,command)
if command=="tribe" then
print(tfm.get.room.playerList[playerName].tribeName
end
end

That will work because playerName was defined at the beginning of the event.


Fatihmilano a dit :
then

EVERYTHING IS BIGGER.

Peynir = Cheese

Basically you did not close the <font> tag, which made everything in your chat bigger.
a dit :

--You did:
print("<font size='90'>hi</font") --> broke the chat
--While this:
print("<font size='90'>hi</font>") --> won't break the chat

 
Abdeltif
« Citoyen »
1387108680000
    • Abdeltif#0000
    • Profil
    • Derniers messages
    • Tribu
#93
  0
Safwanrockz a dit :
The index of playerList should be a predefined variable;

That won't work, because there is no variable called "playerName", but if you did this;

That will work because playerName was defined at the beginning of the event.
Basically you did not close the &lt;font&gt; tag, which made everything in your chat bigger.
 

Abdeltif a dit :
try to local that befor
like
local tribeName = tfm.get.room.playerList[playerName].tribeName
..tribeName..

Now it shull wokrs

You should not use html too much in print because that'll hapen
try to only use font color only
NOT EVENT BOLD

^^
You can make it as a variable that u can use by that
P = tfm.get.room.playerList[playerName].tribeName
print(playerName.."'s tribe is :"..P)
^^
Safwanrockz
« Censeur »
1387109100000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#94
  0
Abdeltif a dit :
^^
You can make it as a variable that u can use by that
P = tfm.get.room.playerList[playerName].tribeName
print(playerName.."'s tribe is :"..P)
^^

Try loading this script:
a dit :
P = tfm.get.room.playerList[playerName].tribeName
print(playerName.."'s tribe is :"..P)

And see what will you get.
Fatihmilano
« Citoyen »
1387193160000
    • Fatihmilano#0000
    • Profil
    • Derniers messages
    • Tribu
#95
  0
Safwanrockz a dit :
Basically you did not close the &amp;lt;font&amp;gt; tag, which made everything in your chat bigger.

Strange, is happening normally.


as(Pop-up or TextArea) ui.addPopup(1,3,"<font size='30'>hi</font",all,300,100,150)
Safwanrockz
« Censeur »
1387299660000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#96
  0
Fatihmilano a dit :
Strange, is happening normally.


as(Pop-up or TextArea) ui.addPopup(1,3,"&lt;font size='30'&gt;hi&lt;/font",all,300,100,150)

That's different than the print() function. But still, the font tag isn't closed.
Fatihmilano
« Citoyen »
1387304160000
    • Fatihmilano#0000
    • Profil
    • Derniers messages
    • Tribu
#97
  0
Safwanrockz a dit :
That's different than the print() function. But still, the font tag isn't closed.

Thanks.
Liammail
« Citoyen »
1387506120000
    • Liammail#0000
    • Profil
    • Derniers messages
    • Tribu
#98
  0
there is something worng in E2 it does not load or play well it loads the map not the game FIX IT PLEASE
Fluffyshine
« Citoyen »
1387593840000
    • Fluffyshine#0000
    • Profil
    • Derniers messages
    • Tribu
#99
  0
## Init Error : Ediz.lua:274: [string "Fluffyshine.lua"]:40: '=' or 'in' expected

Ediz.lua? huh wth
Fatihmilano
« Citoyen »
1387626720000
    • Fatihmilano#0000
    • Profil
    • Derniers messages
    • Tribu
#100
  0
Fluffyshine a dit :
## Init Error : Ediz.lua:274: [string "Fluffyshine.lua"]:40: '=' or 'in' expected

Ediz.lua? huh wth

I was amazed too. Ediz has many tasks in the TR server. You know.
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • [Module API] Errors
« ‹ 5 / 17 › »
© Atelier801 2018

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

Version 1.27