PenUltima Online

It is currently Sat Sep 06, 2008 10:30 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: += and -= operators
PostPosted: Fri Apr 20, 2007 9:05 am 
Offline

Joined: Thu Feb 02, 2006 8:33 am
Posts: 276
I don't know if this is more a core bug. I thought i could use the operators everywhere, but it seems they are only for variables not for e.g. members. I realized that a few minutes ago as i tried a

Code:
weapon.hp -= 1;


which doesn't work if it is not

Code:
weapon.hp := weapon.hp - 1;


So my simple question: Are these operators only for script variables?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 20, 2007 11:20 am 
Offline
POL Developer
User avatar

Joined: Sun Feb 12, 2006 9:50 pm
Posts: 836
Location: Indiana, USA
Far as I know, correct. For variable/array etc

_________________
POL Developer - The Penguin Scripter


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

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 0 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 © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl