Yoko

All sides of Injection
It is currently 2026-01-17 23:47:32

All times are UTC+02:00




Post new topic  Reply to topic  [ 7 posts ] 
Author Message
 Post subject: В чём ошибка?
PostPosted: 2005-01-05 17:57:26 
Offline

Joined: 2004-12-12 17:40:18
Posts: 12
sub iron()
while uo.life>0
if uo.weight=3000 then
uo.waittargettype("0x19b9","0x0000")
uo.serverprint(".killobject")
endif
wait(5000)
wend
end sub

Почему при запуске этого скрипта, пишется: ошибка в третьей линии?
Line 3: parse error


Top
   
PostPosted: 2005-01-05 18:13:21 
Offline

Joined: 2004-06-01 16:24:44
Posts: 60
Location: DRW
Ralfucio wrote:
sub iron()
while uo.life>0
if uo.weight=3000 then
uo.waittargettype("0x19b9","0x0000")
uo.serverprint(".killobject")
endif
wait(5000)
wend
end sub

Почему при запуске этого скрипта, пишется: ошибка в третьей линии?
Line 3: parse error


if uo.weight==3000 then


Top
   
PostPosted: 2005-01-05 18:15:54 
Offline

Joined: 2004-12-12 17:40:18
Posts: 12
MitAl wrote:
Ralfucio wrote:
sub iron()
while uo.life>0
if uo.weight=3000 then
uo.waittargettype("0x19b9","0x0000")
uo.serverprint(".killobject")
endif
wait(5000)
wend
end sub

Почему при запуске этого скрипта, пишется: ошибка в третьей линии?
Line 3: parse error


if uo.weight==3000 then

А почему надо ставить 2 знака равенства?
Разве 2 знака равенство не означает неравенство?


Top
   
PostPosted: 2005-01-05 18:20:23 
Offline

Joined: 2004-06-01 16:24:44
Posts: 60
Location: DRW
Ralfucio wrote:
А почему надо ставить 2 знака равенства?
Разве 2 знака равенство не означает неравенство?


= - это знак присвоения
== - логический оператор

Покрайней мере я так считал и скрипты у меня работают

не равно пишется <>, помоему.


Top
   
PostPosted: 2005-01-05 18:22:26 
Offline
Expert!
User avatar

Joined: 2004-04-04 21:40:09
Posts: 1007
MitAl wrote:
== - логический оператор

Покрайней мере я так считал и скрипты у меня работают

не равно пишется <>, помоему.


Именно так. ХЗ почему, но == не включен в описание скриптового модуля.


Top
   
 Post subject:
PostPosted: 2005-01-05 18:28:12 
Offline

Joined: 2004-12-12 17:40:18
Posts: 12
Большое спасибо! :wink:


Top
   
PostPosted: 2005-01-06 04:01:11 
Offline
Expert!

Joined: 2004-04-03 17:36:29
Posts: 2544
Location: Saint-Petersburg
AGRS wrote:
ХЗ почему, но == не включен в описание скриптового модуля.


Просто это настолько привычно, что используется автоматически :) Естественно, для Си, а не Паскаля ;)


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 8 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