Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
Drum
23
Years of Service
User Offline
Joined: 10th Apr 2003
Location:
Posted: 10th Jul 2003 14:17
hey,
Anyone have any idea whats wronge with this code?


sorry about this ive just not sure...

thanx
nick
UberTuba
23
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Brittania
Posted: 10th Jul 2003 14:24
its in the arrays. The number of numbers the array contains is in the question mark in dim var(?), so dim(0) means the array contains no data. if you wanted to have six numbers or strings in your array
you would use dim MenuItems$(6). The first piece of data in the array is MenuItems$(1) not MenuItems$(0)
hope that helps :-s

Life is a terminal disease.
You never survive it.
Drum
23
Years of Service
User Offline
Joined: 10th Apr 2003
Location:
Posted: 10th Jul 2003 14:27
Thanx alot!
I can't believe i didn't notice that i put a zero in the dim!

hahaha great!

THANX
drum
Mentor
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 10th Jul 2003 14:51
first data in the array is menuitems$(0), darkfluff is thinking of arrays in other languages like C++, they do start at 1, but in pro arrays have an zero element, so dim a(5) allocates room for 6 numbers ... a(0), a(1), a(2), a(3), a(4), a(5), it`s traditional in Basic, arrays have always had a zero element, cheers.

Mentor.

UberTuba
23
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Brittania
Posted: 10th Jul 2003 14:58 Edited at: 10th Jul 2003 15:01
i thought it was the other way round, but i tested it and your right

Life is a terminal disease.
You never survive it.
Drum
23
Years of Service
User Offline
Joined: 10th Apr 2003
Location:
Posted: 10th Jul 2003 15:08
ok guys one last ask.
This is thing which has been buggin me for ages
the quallity is totally messed up:


Thanx
Drum
Vulcan Omega
23
Years of Service
User Offline
Joined: 17th Dec 2002
Location: United Kingdom
Posted: 10th Jul 2003 16:08
Hi,

Where you have:

set sprite currentitem,0,1

it should be

set sprite currentitem,0,0

and that should give you a better quality image.

Hope that helps ya.

Vulcan Omega is closer than you think !
http://www.vulcan-omega.co.uk/

Login to post a reply

Server time is: 2026-07-18 07:31:28
Your offset time is: 2026-07-18 07:31:28