Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
marduk
Beginner


Joined: 05 Feb 2006
Posts: 14

PostPosted: Sun Feb 05, 2006 5:38 pm   

vbscript error
 
I have the following script set to run from a trigger...

dim cc
dim ss
dim myVar

Set cc = CreateObject( "Zmud.Application")
Set ss = cc.CurrentSession

myVar = ss.GetVar("dude", "General")
myVar.Value = "1"
set myVar = Nothing

set ss = Nothing
set cc = Nothing

...and I get the following error...

Error executing:dim cc
dim ss
dim myVar

Set cc = CreateObject( "Zmud.Application")
Set ss = cc.CurrentSession

myVar = ss.GetVar("dude", "General")
myVar.Value = "1"
set myVar = Nothing

set ss = Nothing
set cc = Nothing

Object required: 'dude' (error 424) on line 9, column 1

... dude is a variable in the General class ...

Any suggestions would be greatly appreciated.
Reply with quote
marduk
Beginner


Joined: 05 Feb 2006
Posts: 14

PostPosted: Sun Feb 05, 2006 11:01 pm   
 
Nevermind. Syntax error. Font was hard to read. Embarassed
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
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

© 2009 Zugg Software. Hosted by Wolfpaw.net