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 / Need help with this code

Author
Message
the desktops
20
Years of Service
User Offline
Joined: 9th Oct 2003
Location:
Posted: 23rd Dec 2003 19:06
Can someone help me solve out what's wrong with this code. It always gives me a "PARAMETER MISMATCH"

TheDesktops Software
Current Project: Soul Shooter 2004
Overall Game: 6.8% done
Chaos
21
Years of Service
User Offline
Joined: 8th Feb 2003
Location: United Kingdom
Posted: 23rd Dec 2003 19:18 Edited at: 23rd Dec 2003 19:20
apart from their is no sync on in your code or a sync in your loop change that and it should work.

editand also your missing an endif on your last if statment

Chaos


the_winch
21
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 23rd Dec 2003 20:07
Single line if statments are done like this in db
if a = 0 then a = 6

There was also a scancode without brakets on the end.
if scancode=0 then hold=0
if scancode()=0 then hold=0

and a if without and endif.

If you are using sync on then you need syncs whenever you want the screen to be updated, if you are not using sync on then db will sync for you.

attached fixed code.

dbpro : p166mmx @ 233 : 256mb : sb 128pci : sis onboard
the desktops
20
Years of Service
User Offline
Joined: 9th Oct 2003
Location:
Posted: 23rd Dec 2003 20:39
Thanks guys

TheDesktops Software
Current Project: Soul Shooter 2004
Overall Game: 6.8% done

Login to post a reply

Server time is: 2024-09-21 15:17:59
Your offset time is: 2024-09-21 15:17:59