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 / 2d basic code can you fix it?

Author
Message
diablo fan
20
Years of Service
User Offline
Joined: 7th Jan 2004
Location: michigan usa
Posted: 2nd Mar 2004 23:02 Edited at: 2nd Mar 2004 23:03
im trying to learn from this code and it had some bugs that i fixed but i cant get the bullets to shoot.this code was for db but im using it in dbpro.if anyone can fix this it would help.thanks

please dont make fun of my spelling,or sentence structure.Id rather study math or programming
diablo fan
20
Years of Service
User Offline
Joined: 7th Jan 2004
Location: michigan usa
Posted: 3rd Mar 2004 04:54
ok i figured it out now but i have one question.it says:
if bullets(a,2)!0

what does the ! do?

please dont make fun of my spelling,or sentence structure.Id rather study math or programming
diablo fan
20
Years of Service
User Offline
Joined: 7th Jan 2004
Location: michigan usa
Posted: 3rd Mar 2004 09:54
ok got it solved a post from a great new friend

The ! (or NOT) operator is used to compare two values. If the values are the
same, it will return false. If the values are different, it will return
true.

So:

if i!0
i=0
endif

The previous code will check if i IS NOT 0. If not, it will set it to zero.
I think however the NOT operator changed in DBP, so instead of ! use <>
(greater than < Less than > Which does the same thing. If the value is
greater than, or less then (not equal) then it returns true.

-Jeff

please dont make fun of my spelling,or sentence structure.Id rather study math or programming

Login to post a reply

Server time is: 2024-11-26 07:53:59
Your offset time is: 2024-11-26 07:53:59