IPB
Welcome Guest
Log In | Register
 
Reply to this topicStart new topic
 Not sure where this error is coming from.

Droid
post Mar 4 2010, 05:36 PM
Post #1

Newbie
*

Group: Members
Posts: 10
Thank(s): 0
Joined: 4-March 10
Member No.: 120
Favorite Programming Language: Visual Basic



I keep getting these errors randomly. It doesn't always happen when someone leaves. I have a few scripts enabled that do use Event_UserLeave like DroidGnome and Seen, but it's not that script that's causing the error. I had this issue in 9.4 and 9.5 as well, but I didn't have anywhere to post this issue.

CODE
CAUTION: REGISTER / LOGIN first, to view this contents!
Go to the top of the page
 
+Quote Post
Search & Win

Chriso
post Mar 5 2010, 02:25 PM
Post #2

Newbie
*

Group: Administrators
Posts: 20
Thank(s): 7
Joined: 1-March 10
Member No.: 57
Favorite Programming Language: C#



Is there a script called '.txt' in your scripts folder?
Go to the top of the page
 
+Quote Post

Droid
post Mar 5 2010, 03:12 PM
Post #3

Newbie
*

Group: Members
Posts: 10
Thank(s): 0
Joined: 4-March 10
Member No.: 120
Favorite Programming Language: Visual Basic



No, there is not. It seems to only do it on one profile even though I have 4 profiles loaded. I also only have scripts running on that one profile.
Go to the top of the page
 
+Quote Post

Chriso
post Mar 5 2010, 04:54 PM
Post #4

Newbie
*

Group: Administrators
Posts: 20
Thank(s): 7
Joined: 1-March 10
Member No.: 57
Favorite Programming Language: C#



Are you sure the script is not causing the error? It appears it must be one of the scripts or an internal bug, I would check the scripts first since most other scripts function properly.
Go to the top of the page
 
+Quote Post

Ad Bot
post Mar 5 2010, 04:54 PM
Post #

Advertisment









Search & Win
Search & Win
Go to the top of the page
 
Quote Post

Droid
post Mar 5 2010, 05:19 PM
Post #5

Newbie
*

Group: Members
Posts: 10
Thank(s): 0
Joined: 4-March 10
Member No.: 120
Favorite Programming Language: Visual Basic



I was looking through my Seen.txt, and I realized Event_UserLeave() sub may be the one creating this error.
This is line 45:
CODE
CAUTION: REGISTER / LOGIN first, to view this contents!

Why would this line return an error? It's rather strange that it doesn't identify that the error is from Seen.txt. Most of the time when a user leaves, it doesn't create an error. Here's a quick look at the entire sub for reference.

CODE
CAUTION: REGISTER / LOGIN first, to view this contents!
Go to the top of the page
 
+Quote Post

Chriso
post Mar 5 2010, 10:01 PM
Post #6

Newbie
*

Group: Administrators
Posts: 20
Thank(s): 7
Joined: 1-March 10
Member No.: 57
Favorite Programming Language: C#



Try instantiating it as something like this:
CODE
CAUTION: REGISTER / LOGIN first, to view this contents!


Not sure on the 'Now()' function, does that work in VBScript?
Go to the top of the page
 
+Quote Post

Droid
post Mar 6 2010, 06:39 AM
Post #7

Newbie
*

Group: Members
Posts: 10
Thank(s): 0
Joined: 4-March 10
Member No.: 120
Favorite Programming Language: Visual Basic



Yes, Now() works in VBScript. I'll try the change you suggested and see if the random errors stop. If there was a problem with the sub though, wouldn't there be an error every time someone leaves instead of just randomly?
Go to the top of the page
 
+Quote Post

Droid
post Mar 7 2010, 06:15 AM
Post #8

Newbie
*

Group: Members
Posts: 10
Thank(s): 0
Joined: 4-March 10
Member No.: 120
Favorite Programming Language: Visual Basic



After trying the new sub for a day, I still got errors. I don't think there was a problem with the way I originally wrote the sub. The error is still happening randomly as before.
CODE
CAUTION: REGISTER / LOGIN first, to view this contents!
Go to the top of the page
 
+Quote Post

Fast ReplyReply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Useful links
Recently Added Topics
Lo-Fi Version Time is now: 8th September 2010 - 11:11 AM

Skin by IPB Customize
Invision skins