Yoko

All sides of Injection
It is currently 2025-11-23 08:32:35

All times are UTC+02:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Return
PostPosted: 2009-12-12 23:39:13 
Offline

Joined: 2009-03-21 18:18:45
Posts: 20
Собственно говоря как работает эта команда? Чото её описания ненашол и принципа пременения,но замечаю её во многих скриптах. Что она возвращает или куда? :?


Top
   
 Post subject:
PostPosted: 2009-12-13 01:52:03 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
Все претензии к Edred - он не прописал его в уроках..

Что касается вопроса.. Курите вплоть до полного понимания, что делает такой код:
Code:
sub main()
  var str = test()
  uo.print( str )
endsub

Sub test()
  return "Hello World"
endsub


Перед курением прочесть 0,1 уроки скриптинга.

_________________
YokoInjection CodeSweeper
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Skype: d119060


Top
   
 Post subject:
PostPosted: 2009-12-13 16:20:34 
Offline
User avatar

Joined: 2009-05-28 09:58:28
Posts: 2802
Location: Иваново
Не совсем точный пример который его еще больше запутает :) Ретурн можно использовать еще чтобы выставить значение Истина либо Ложно для проверки.


ХЗ понятнее ли :) надо просто в скриптах поискать и посмотреть че оно делает.

_________________
Image
YokoInjection CodeSweeper
Ошибка "Unhandled exception in parser"
Стрелялка для олдов.


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: Bing [Bot] 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