egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Error

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
ORATEGOD
Voice


Joined: 08 Jun 2020
Posts: 34

PostPosted: Sun Oct 02, 2022 8:39 pm    Post subject: Error Reply with quote

greetings friends

I have an error starting this TCL.
The eggdrop is version v1.6.18

I appreciate the help you can give me =)

Quote:
can't set "time": variable is array
while executing
"set time 90"
(file "scripts/servidor.tcl" line 23)
invoked from within



# Tempo de envio de Mensagem
set time 90


Last edited by ORATEGOD on Fri Oct 28, 2022 6:33 pm; edited 1 time in total
Back to top
View user's profile Send private message AIM Address
CrazyCat
Revered One


Joined: 13 Jan 2002
Posts: 1074
Location: France

PostPosted: Mon Oct 03, 2022 2:21 am    Post subject: Reply with quote

As your variable time is global, without namespace, and with a really generic name, I guess you have another script, loaded before this one, which also use time variable and declare it as an array.

Change your variable name.

Tip: never use generic name, and more never use reserved keywords, as time (which is also a function)
_________________
https://www.eggdrop.fr - French IRC network
Offer me a coffee - Do not ask me help in PM, we are a community.
Back to top
View user's profile Send private message Visit poster's website
ORATEGOD
Voice


Joined: 08 Jun 2020
Posts: 34

PostPosted: Mon Oct 03, 2022 7:47 am    Post subject: Reply with quote

CrazyCat wrote:
As your variable time is global, without namespace, and with a really generic name, I guess you have another script, loaded before this one, which also use time variable and declare it as an array.

Change your variable name.

Tip: never use generic name, and more never use reserved keywords, as time (which is also a function)



thank you very much friend !!!
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber