Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
was around Print on every line
#1
is there away i can get around haveing to put print on every line?
Reply
#2
Solance,
What do you mean?
"Put print on every line" when you are doing what?
What is this program doing?
*****
Reply
#3
its like a compiler that will compile a script for you but i keep getting error when i try and test it "mis match error"[/code]
Reply
#4
ok i fixed the errors but when it runs and where is have

Code:
Open main.as for input as #1
open main.as for output as #2

i get a file already open message
Reply
#5
you should use different names for files. You can't read and write to the same file at the same time. If you want to modify a file, you have do make a copy or deal with in on memory.
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#6
thats what i am trying to do is modify the file how would i go about doing it?
Reply
#7
It deppends on the file and data you are daling with, but you better open a different one for output and when you are done delete the original and rename the new with the same name as the original.
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#8
Code:
PRINT "This is a main.as script Creator version 1.0"
PRINT "be sure to check for more customizeable versoins at www.asoki.distanthost.com"; ""
INPUT "Games name"; gna
INPUT "max maps"; mmaps
INPUT "max players Online"; mpla
INPUT "Message of the day"; motd
PRINT "thank you for useing this program please wait"
Ser$ = "call setservername(server name)"
rep$ = "call setservername(" + gna + ")"
OPEN main.as FOR INPUT AS #1
OPEN main.as FOR OUTPUT AS #2
Ser$ = "call setmaxmaps(500)"
rep$ = "call setmaxmaps(" + mmaps + ")"
OPEN main.as FOR INPUT AS #1
OPEN main.as FOR OUTPUT AS #2
SER$ = "call setmaxplayers(20)"
REP$ = "call setmaxplayers(" + mpla + ")"
open main.as for input as #1
open main.as for output as #2
SER$ = "call setmotd(sample motd)"
REP$ = "call setmotd(" + motd + ")"
open main.as for input as #1
open main.as for output as #2
[quote]

what should i change ???

i dont really understand what you said[/quote]
Reply
#9
Code:
PRINT "This is a main.as script Creator version 1.0"
PRINT "be sure to check for more customizeable versoins at www.asoki.distanthost.com"; ""
INPUT "Games name"; gna
INPUT "max maps"; mmaps
INPUT "max players Online"; mpla
INPUT "Message of the day"; motd
PRINT "thank you for useing this program please wait"
Ser$ = "call setservername(server name)"
rep$ = "call setservername(" + gna + ")"
OPEN main.as FOR INPUT AS #1
OPEN main.as FOR OUTPUT AS #2
Ser$ = "call setmaxmaps(500)"
rep$ = "call setmaxmaps(" + mmaps + ")"
OPEN main.as FOR INPUT AS #1
OPEN main.as FOR OUTPUT AS #2
SER$ = "call setmaxplayers(20)"
REP$ = "call setmaxplayers(" + mpla + ")"
open main.as for input as #1
open main.as for output as #2
SER$ = "call setmotd(sample motd)"
REP$ = "call setmotd(" + motd + ")"
open main.as for input as #1
open main.as for output as #2

what should i change ???

i dont really understand what you said
Reply
#10
edit button, try not duoble posting

edit: i dont understand your code. whats it exsposed to do?
[Image: sig.php]
Back by popular demand!
I will byte and nibble you bit by bit until nothing remains but crumbs.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)