Yoko

All sides of Injection
It is currently 2025-11-15 05:50:32

All times are UTC+02:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
 Post subject: return
PostPosted: 2007-11-21 13:20:00 
Offline

Joined: 2005-05-12 00:02:30
Posts: 2
Объясните пожалуйста, какуй функцию выполняет команда return.
Как я понимаю она завершает работу скрипта, но тогда для чего используются команды return 0 и return 1

Заранее благодарен...


Top
   
 Post subject:
PostPosted: 2007-11-21 13:36:21 
Offline

Joined: 2005-05-12 00:02:30
Posts: 2
поюзал потщательнее поиск ... нашел топик с таким же названием в разделе хелп ...

Code:
sub Ret_Value() 
  if uo.InJournal('put') then
    return 1
  else
    return 0
end sub

sub Script()
  if Ret_Value()==1 then
    uo.Print('We put something...')
  else
    if Ret_Value()==0 then
      uo.Print('There are no msg.')
    end if
  end if
end sub


со всем разобрался ...


Top
   
 Post subject:
PostPosted: 2007-11-21 13:37:08 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
:wink:


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 3 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:  
Powered by phpBB® Forum Software © phpBB Limited