QJ.NET | Videos | Forums | iPhone | MMORPG | Nintendo DS | Wii | PlayStation 3 | PSP | Xbox 360 | PC | Downloads | Contact Us
Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact

QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides

Go Back   QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides > Developers Corner > PSP Development, Hacks, and Homebrew > PSP Development Forum
The above video goes away if you are a member and logged in, so log in now!

Ehm Error problem [LUA]

This is a discussion on Ehm Error problem [LUA] within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Elloo homies I am coding a bit in lua and i get this error which i can't figure out, its ...

Reply
 
LinkBack Thread Tools
Old 06-04-2009, 02:16 PM   #1
 
Join Date: May 2008
Posts: 93
Trader Feedback: 0
Default Ehm Error problem [LUA]

Elloo homies
I am coding a bit in lua and i get this error which i can't figure out,
its on line 59 of my script and the error is this:
"59:'then' expected near '!'"

and this is the if piece where the error takes place:
Code:
if anaX > 50 then
LINE 59:if wepbutrig!=0 and wepbutrig!=1 then
wepbutrig=0
end
if wepbutrig==0 then
player1[1].wepx=player1[1].x+20
player1[1].wepy=player1[1].y-3
wepbutrig=1
end
player1[1].x=player1[1].x+2
player1[1].image="http://forums.qj.net/images/Player/playerright.png"
player1[1].weapimage="http://forums.qj.net/images/Player/weapon/wep_right.png"
end
Predricted is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-04-2009, 02:48 PM   #2
Enter Custom Title
 
dan369's Avatar
 
Join Date: Jan 2008
Real First Name: Dan
Location: Wales, cardiff
Just Played: Overlord 2
Posts: 1,308
Blog Entries: 1
Trader Feedback: 0
Default

not equal in lua is ~=. != is the C syntax.
dan369 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-04-2009, 04:00 PM   #3
 
Join Date: May 2008
Posts: 93
Trader Feedback: 0
Default

Quote:
Originally Posted by dan369 View Post
not equal in lua is ~=. != is the C syntax.
thnx that helped
Predricted is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
ehm , error , lua , problem

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -8. The time now is 11:58 PM.



Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2009, QJ.NET. All Rights Reserved.
Contact Us