Yoko

All sides of Injection
It is currently 2026-01-16 11:53:48

All times are UTC+02:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 2010-04-07 22:25:48 
Offline
User avatar

Joined: 2009-03-06 21:52:25
Posts: 89
Как мне сделать чтобы это он повторял бесконечно? Но также чтобы "until TileType==0" также остался.

Code:
f.Open()
    repeat
      TileType=safe call f.ReadNumber()
      XTile[k]=safe call f.ReadNumber()
      YTile[k]=safe call f.ReadNumber()
      ZTile[k]=safe call f.ReadNumber()
      if TileType<>0 then
        uo.Print(STR(XTile[k])+' '+STR(YTile[k])+' '+STR(ZTile[k]))
      end if
      k=k+1
    until TileType==0
    uo.Print('There are '+STR(k-1)+' tiles in a file.')
    f.Close()
  end if 


Top
   
PostPosted: 2010-04-08 01:45:31 
Offline
User avatar

Joined: 2009-03-06 21:52:25
Posts: 89
Разобрался! :wink:


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 2 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 4 guests


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited