Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
WinterDragon
Newbie


Joined: 25 Apr 2003
Posts: 5
Location: USA

PostPosted: Fri Apr 25, 2003 6:10 pm   

Executing N.Line from File?
 
Ok lets say i do read the first line from a file such as...

#FILE 1 rooms.txt
#READ 1 @roomcount

Will read whatever @roomcount is correct? so if roomcount is 1, it will read the first line...

now how do I execute the command stored in the first line? or whatever line the script is on currently? Thanks again for any help.
Reply with quote
Talahaski
Enchanter


Joined: 10 Oct 2000
Posts: 656
Location: USA

PostPosted: Fri Apr 25, 2003 6:27 pm   
 
try this instead.

#FILE 1 rooms.txt
%read(1,1)

Syntax is %read(filenumber,recordnumber)
if you leave record number it just takes the next sequential line from the file.


You may want to read up on #SEND, #READ, %READ.


Talahaski
Processor PIII 1000
Memory 265MB
Video NVIDIA 64MB
Windows XP
Zmud Version 6.56
Zmapper Version 1.14

http://www.dartmud.com
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net