This forum is meant for posting anything related to Adventure Maker that doesn't fit in the other forums.Please post technical questions in the Technical Support Forum!
Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support
by JasonMc » Mon Jul 19, 2010 6:21 am
I have a script related to my roster system, and I keep getting an error message stating that I have a null value.
This is the script that seems to trigger it.
- Code: Select all
LoadControl ListBoxObject(1)
ListBoxObject(1).move 257*15,242*15,300*15,150*15
for i=1 to ReadINI("users.paw","usercount",1)
ListBoxObject(1).AddItem ReadINIValue("users.paw","users",i)
Next
I am trying to load an .ini (extension changed to ".paw") with a user list.
-Jason McDonald
Manager, Programmer
MousePaw Games
--
PocketWatch 1.0 Plugin now available in the Plugins Corner!
-
JasonMc
- Active Member
-
- Posts: 99
- Joined: Sun Jul 04, 2010 10:27 pm
- Location: Pacific Northwest, USA
-
by Mystery » Sat Jul 24, 2010 12:55 am
Sorry to see that your question has no replies yet.
Unfortunately this topic is beyond my own skills, but I hope that ShadowHunter, Lyberodoggy or reneuend (or somebody else with skills in that area) can help you.
-
Mystery
- Forum Admin and Games Page admin
-
- Posts: 2990
- Joined: Sat Feb 04, 2006 8:12 am
- Location: Switzerland
-
by JasonMc » Sat Jul 24, 2010 5:24 am
Yeah, I'm waiting for Lyberodoggy to get back from vacation. He said he'd try and fix my roster system (I sent him the file.)
-Jason McDonald
Manager, Programmer
MousePaw Games
--
PocketWatch 1.0 Plugin now available in the Plugins Corner!
-
JasonMc
- Active Member
-
- Posts: 99
- Joined: Sun Jul 04, 2010 10:27 pm
- Location: Pacific Northwest, USA
-
by reneuend » Sat Jul 24, 2010 6:23 am
I suspect your upper bound of your FOR loop isn't returning a value. Be sure you're getting a value and that it is numeric by doing the following:
- Code: Select all
sUpperLimit = ReadINI(...)
If not sUpperLimit = "" then
nUpperLimit = cint(sUpperLimit)
For i = 1 to nUpperLimit
Next
End if
---
-
reneuend
- Administrator
-
- Posts: 2762
- Joined: Sat Nov 22, 2008 8:37 pm
- Location: Midwest Cornfield, USA
-
by Lyberodoggy » Sun Jul 25, 2010 11:51 am
Are the INIs filled with data?
-
Lyberodoggy
- Administrator
-
- Posts: 2526
- Joined: Sat Feb 17, 2007 3:31 pm
- Location: Athens
by JasonMc » Sun Jul 25, 2010 11:28 pm
Ha ha, umm, I can't remember.
Welcome back, Lybero. Actually, latest info about this in the "Roster System" topic.
-Jason McDonald
Manager, Programmer
MousePaw Games
--
PocketWatch 1.0 Plugin now available in the Plugins Corner!
-
JasonMc
- Active Member
-
- Posts: 99
- Joined: Sun Jul 04, 2010 10:27 pm
- Location: Pacific Northwest, USA
-
Return to Adventure Maker General Discussion
Who is online
Users browsing this forum: No registered users and 0 guests