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.

Newcomers DBPro Corner / very strange.............

Author
Message
Jurgen
21
Years of Service
User Offline
Joined: 3rd Mar 2003
Location:
Posted: 9th Jun 2003 19:58
hi, I have a very strange problem:

keystatus#=scancode()
if keystate#=17 then clip#=30

why doesn't this work? Okay, I'll give you some more coding:

if bnumber#>(clip#+300)
buw#=0
for bweg=301 to clip#+301
delete object bweg
next bweg
bnumber#=300
endif

it cleares all objects ranging from 301 to the total-bullets-in-clipnumber+1

Now I choose another weapon, let's say an m4, and the bulltes in clip are 30 (pressing the "w" key) but it doesn't work.... why?
"Only when all the seas are poisened, only when all the trees have been cut only when all the animals are killed, people will understand that money can't be eaten..."
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 9th Jun 2003 20:02
The first doesn't work because you have two different variable names - keystatus# and keystate#
Jurgen
21
Years of Service
User Offline
Joined: 3rd Mar 2003
Location:
Posted: 9th Jun 2003 20:05
noo, that sure works, but why can't I declare a variable?

"Only when all the seas are poisened, only when all the trees have been cut only when all the animals are killed, people will understand that money can't be eaten..."
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 9th Jun 2003 22:28
couldn't you use keystate(17)=1 not keystate#=17 for the top bit?

ARE YOU A 3D MODELER??? IF SO WE NEED YOU!!!
EMAIL mynameisnoneofyourbuisness@hotmail.com to work on the new Star Strike project!!!

Login to post a reply

Server time is: 2024-11-24 16:55:37
Your offset time is: 2024-11-24 16:55:37