08-23-2003, 06:12 AM
Pages: 1 2
08-23-2003, 06:18 AM
Solance,
What do you mean?
"Put print on every line" when you are doing what?
What is this program doing?
*****
What do you mean?
"Put print on every line" when you are doing what?
What is this program doing?
*****
08-23-2003, 06:48 AM
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]
08-23-2003, 06:52 AM
ok i fixed the errors but when it runs and where is have
i get a file already open message
Code:
Open main.as for input as #1
open main.as for output as #2
i get a file already open message
08-23-2003, 06:57 AM
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.
08-23-2003, 07:01 AM
thats what i am trying to do is modify the file how would i go about doing it?
08-23-2003, 07:02 AM
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.
08-23-2003, 07:05 AM
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]
08-23-2003, 07:07 AM
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
08-23-2003, 07:11 AM
edit button, try not duoble posting
edit: i dont understand your code. whats it exsposed to do?
edit: i dont understand your code. whats it exsposed to do?
Pages: 1 2