umm!, if thats all you have then I am amazed it runs at all, where on earth did you get clips#### and ammo### from, they aren`t even legal, you don`t even need floats to display integers, and you are displaying the same thing regardless of the value of gun, here is more like what it should look like for the style you used...
dim Ammo(3)
dim Clip(3)
Ammo(1)=200
Ammo(2)=100
Ammo(3)=50
Clip(1)=4
Clip(2)=8
Clip(3)=2
sync on
sync rate 0
Gun=1
do
Ammoval=Ammo(Gun)
Clipval=Clip(Gun)
cls
center text 35,375,str$(Ammoval)
center text 35,360,str$(Clipval)
if upkey() and Gun<3 then inc gun:wait 300
if downkey() and Gun>1 then dec Gun:wait 300
sync
loop
this is just one way of doing it, and not the best or the fastest, you will find there are always several ways of doing things in programming, IMO the best way is one that works and that you understand, not just something you cut`n`paste and then fumble around with trying to get it to work, I hope thats some help, cheers
Mentor.
PC1: P4 hyperthreading 3ghz, 1gig mem, 2x160gig hd`s, ATI radeon 9800 pro gfx, 6 way surround sound, PC2: AMD 1.2ghz, 512mb ram, FX5200 ultra gfx, stereo 16 bit soundblaster, ups.