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.

DarkBASIC Discussion / codes are to long can any one help me for a sec?

Author
Message
avenger 999
19
Years of Service
User Offline
Joined: 28th May 2005
Location:
Posted: 29th May 2005 03:19
ok well im making a hacking game and im having a bit of trouble with one part well ok i can do it but the coding is way longer then it should have to be when it comes to one part basicly "line"+linenumberintext$+"$" comes out as line000$ is you print it or what ever so I want

but the problem is that the code

dosnt work sure i could just put

but 24/25 of the time linenumberintext$ isnt gona be 000 so whay can i do? here is the code iv got running right now i wouldnt mind using it so much if i just had it once but im gona be using this as much as 50 or 100 times by the time the game is done so its just insain having the code so long for it is there any way to shorten


sorry i probable didnt do a very good job explaining what i want to know but anyways does any one have a idea what I should do?

batman: forgotten sins
http://go.hostlite.co.uk/fanfilms/forgotten/
empty
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: 3 boats down from the candy
Posted: 29th May 2005 05:41
What you need are arrays.


There are lots of tutorials (forums, newsletters, etc.) that explain how arrays work. Worth a look as arrays are very important for larger projects.


Play Nice! Play Basic! Version 1.073
avenger 999
19
Years of Service
User Offline
Joined: 28th May 2005
Location:
Posted: 29th May 2005 06:09
woohoo thanks man I havent tryed it yet but youve given me hope! LOL

is there like a time delay on new threds or something because when i started this convo it didnt show up even when i did a search for it so i didnt think it went in so re entered it like 3 times... oops sorry lol

batman: forgotten sins
http://go.hostlite.co.uk/fanfilms/forgotten/
avenger 999
19
Years of Service
User Offline
Joined: 28th May 2005
Location:
Posted: 30th May 2005 07:23
woohoo it works great thanks man if anyone want to try what iv done so far i have it up at http://go.hostlite.co.uk/fanfilms/index.html i had done a lot more before but started recoding it from scratch and remaking it totaly diffrent so far the only commands that work are echo, help, dir, and cls

batman: forgotten sins
http://go.hostlite.co.uk/fanfilms/forgotten/

Login to post a reply

Server time is: 2025-05-23 00:22:25
Your offset time is: 2025-05-23 00:22:25