forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

i++ ?

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development
View previous topic :: View next topic  
Author Message
the underminer



Joined: 03 Oct 2005
Posts: 124
Location: Netherlands

PostPosted: Mon May 22, 2006 1:47 am    Post subject: i++ ? Reply with quote

how to do this in lua?
I tried i+= and i++ and i=+
none works...
_________________
Behold! The Underminer got hold of a PSP
Back to top
View user's profile Send private message
KawaGeo



Joined: 27 Aug 2005
Posts: 191
Location: Calif Mountains

PostPosted: Mon May 22, 2006 4:29 am    Post subject: Reply with quote

You need to do each in traditional expressions like BASIC or Pascal, that's, for instance:

a += b -> a = a + b
.
_________________
Geo Massar
Retired Engineer
Back to top
View user's profile Send private message Send e-mail
daurnimator



Joined: 11 Dec 2005
Posts: 38
Location: melbourne, australia

PostPosted: Mon May 22, 2006 11:50 pm    Post subject: Re: i++ ? Reply with quote

the underminer wrote:
how to do this in lua?
I tried i+= and i++ and i=+
none works...


lol, think about things logically - "i = i + 1"
but, i do wish lua had "+=" - or even "++"
Back to top
View user's profile Send private message MSN Messenger
imhotep



Joined: 13 Dec 2005
Posts: 41

PostPosted: Fri May 26, 2006 1:24 am    Post subject: Reply with quote

yeah i think that sucks too, when i switch between PHP and lua
i get confused every time :P

it would be really cool to have this implemented into LUA
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group