"Null"?

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

"Null"?

Postby 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!
User avatar
JasonMc
Active Member
 
Posts: 99
Joined: Sun Jul 04, 2010 10:27 pm
Location: Pacific Northwest, USA

Postby 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.
User avatar
Mystery
Forum Admin and Games Page admin
 
Posts: 2990
Joined: Sat Feb 04, 2006 8:12 am
Location: Switzerland

Postby 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!
User avatar
JasonMc
Active Member
 
Posts: 99
Joined: Sun Jul 04, 2010 10:27 pm
Location: Pacific Northwest, USA

Postby 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
---


Image
Image
User avatar
reneuend
Administrator
 
Posts: 2691
Joined: Sat Nov 22, 2008 8:37 pm
Location: Midwest Cornfield, USA

Postby Lyberodoggy » Sun Jul 25, 2010 11:51 am

Are the INIs filled with data?
User avatar
Lyberodoggy
Administrator
 
Posts: 2519
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens

Postby 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!
User avatar
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 2 guests

cron