Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Entire forum
➜ MUSHclient
➜ VBscript
➜ adding variables
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Guest1
USA (256 posts) |
Date
| Tue 08 Oct 2002 04:44 AM (UTC) |
Message
| not sure what I'm doing wrong here..
sub expcounter (thename, theoutput, thewildcards)
dim expnew
dim expold
dim expnewtotal
expnew = thewildcards (1)
expold = World.GetVariable("groupexptotal")
expnewtotal = cint (expold) + cint (expnew)
World.SetVariable "groupexptotal", expnewtotal
end sub
I keep getting an error about ( Overflow. 'cint' ) ..can anyone set me right here please? | Top |
|
Posted by
| Guest1
USA (256 posts) |
Date
| Reply #1 on Tue 08 Oct 2002 05:08 AM (UTC) |
Message
| doh.. nevermind. changed the line
expnewtotal = cint (expold) + cint (expnew)
to
expnewtotal = cLng(expold) + cLng(expnew)
seems to be ok now :) | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
8,462 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top