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 / Help with code

Author
Message
crono12
20
Years of Service
User Offline
Joined: 1st Nov 2003
Location:
Posted: 2nd Jan 2004 23:32
I was learning about arrays and decided to make an inventory program but after I exit the inventory It won't come back up again. Attached is the source code.
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 3rd Jan 2004 00:45
Don't you need a CLS or SYNC somewhere?
GenTekZ
20
Years of Service
User Offline
Joined: 30th Dec 2003
Location: Virtual Reality
Posted: 3rd Jan 2004 05:57
Yes you need to put sync in your program. Try putting this at the top of your first code.

SYNC ON
SYNC RATE 40

that should clear things up. and if it stops during some other point in game do it at the begining of that code too
the_winch
21
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 4th Jan 2004 02:37
@crono12 are you using dbpro of dbc, it can make quite a difference.

The problem I can see is is you are putting the "#" character after every vairable name. The "#" character at the end of the variable name tells db you want the variable to be a floating point number(float). This line causes an error in dbpro
inviup# as integer
it should be
inviup as integer if you want it to be an integer, or either
inviup# = 1 or
inviup as float
if you want it to be a floating point number.

dbpro : 2ghz p4m : 512mb : geforce 4 4200 go

Login to post a reply

Server time is: 2024-09-21 15:45:13
Your offset time is: 2024-09-21 15:45:13