help weird error

Post here about scripting and programming for HaloPC (audio, network, ai, etc.)
Post Reply
PlasmaGhost





Posts: 149
Joined: Wed Oct 05, 2005 12:23 pm

help weird error

Post by PlasmaGhost »

i got such a strange error. im kinda new to c# and im pretty good but wtf is this? check the pick
Image
so if anybody could help me that'd be great. o and if ur wondering what im making, its a game engine
Patrickssj6




Pi Collaborator

Posts: 5426
Joined: Sat Jul 24, 2004 12:12 pm
Location: I'm a Paranoid
Contact:

Re: help weird error

Post by Patrickssj6 »

im kinda new to c#

Code: Select all

o and if ur wondering what im making, its a game engine
right...


Sry that my post is not helpfull :D
...left for good
PlasmaGhost





Posts: 149
Joined: Wed Oct 05, 2005 12:23 pm

Post by PlasmaGhost »

im new but i no lots from vb they have many similarities
User avatar
kornman00




ONI New Age

Posts: 146
Joined: Fri Dec 12, 2003 6:30 pm
Contact:

Post by kornman00 »

You should assert that "bmps" is not null. If it is, it can't enumerate the values for it to do a foreach.
PlasmaGhost





Posts: 149
Joined: Wed Oct 05, 2005 12:23 pm

Post by PlasmaGhost »

i hate arrays alot...lol but heres what i did:

i declared bmps as null
then i added objects to bmps
so when u try to do the foreach it does that
Post Reply