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 / My first program thanks to you

Author
Message
RisTar_sn
19
Years of Service
User Offline
Joined: 15th Jan 2005
Location:
Posted: 5th Mar 2006 11:06
Well ive managed to finish my first program in darkbasic thanks to your help guys , 3 balls runing up on the screen and one of them win . here is the code , tell me what you think

Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 5th Mar 2006 19:21 Edited at: 5th Mar 2006 19:31
congratz on getting this far, RisTar. although the program appears to be working, i do not think it's as you intended, which should be any programmer's goal, i believe. please see the attached screenshot displaying incorrect results in a close, exciting race i ran the program 6-7 times, atleast 2 of which, if i had any money on the race, would have required an inquiry and a shot of whiskey, depending on which thoroughbred i chose.

here is the piece of code i would continue scrutinizing:




good luck.

Athlon XP1800+, Windows XP+SP2, Soyo K7V Dragon+ MB, 1.5Gb 333 RAM, ATI Radeon 8700LT (128Mb)
Drivers and Updates Kept Current

Attachments

Login to view attachments
RisTar_sn
19
Years of Service
User Offline
Joined: 15th Jan 2005
Location:
Posted: 5th Mar 2006 21:40
Thanks , i think that i should work something ...
Crazy Ninja
19
Years of Service
User Offline
Joined: 27th Aug 2005
Location: Awesometon
Posted: 6th Mar 2006 09:11
i tried it and all that happened was the balls, lanes, and text, just kept on flashing
Jedi Lord
20
Years of Service
User Offline
Joined: 11th Jun 2004
Location: Jedi Temple
Posted: 8th Mar 2006 01:20
Lol, when it end the race... actual winner is green but it said yellow is the winner. Lol

but,
nice job

Whoa... I like a shiny thing...
RUCCUS
19
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 8th Mar 2006 01:38 Edited at: 8th Mar 2006 01:39
An excellent first program, not only is it fairly efficiently programmed but you managed to make it look nice too

If you want the solution to your little problem with the wrong winner, click the code button below. If you want to figure it out for yourself, then... dont

(I'm not actually correcting your code, just giving a hint)



Goodluck and goodjob,
- RUC'

RisTar_sn
19
Years of Service
User Offline
Joined: 15th Jan 2005
Location:
Posted: 8th Mar 2006 18:03
i got the problem now all i need is to solve it
and do it quick cause im working on the new 2D Version
Cheack it out

Attachments

Login to view attachments
RisTar_sn
19
Years of Service
User Offline
Joined: 15th Jan 2005
Location:
Posted: 8th Mar 2006 19:09
RUCCUS My english is bad so i didnt understood the solution of yours but i think i got it myself , what do u think
RUCCUS
19
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 8th Mar 2006 22:16
That will work but I was leaning more towards the >= operator. It checks if the value is greater than OR equal to the other value. So just put an = after those > signs and you'll be set

RisTar_sn
19
Years of Service
User Offline
Joined: 15th Jan 2005
Location:
Posted: 12th Mar 2006 22:57
Thanks RUCCUS

Login to post a reply

Server time is: 2024-09-24 19:31:49
Your offset time is: 2024-09-24 19:31:49