![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
This is a discussion on Help with this code... within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Hey! when I try to load this code in luaplayer I get this error: script.lua:43: '=' expected near 'if' Could ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 | |
![]() i <3 fluffy rainbows
|
Hey!
when I try to load this code in luaplayer I get this error: script.lua:43: '=' expected near 'if' Could someone please try and find whats wrong? Heres the code: Quote:
Thanks in advance --pspmachine Last edited by pspmachine; 10-23-2005 at 11:53 AM.. |
|
|
|
|
|
|
#2 |
![]() ![]() OMFG
|
then ~ end
plus I don't think this script will run with just the error fixes...there's no loop or anything. You should make the loadtriangle, etc a function instead of however you are doing it. Last edited by Slasher; 10-23-2005 at 12:47 PM.. |
|
|
|
|
|
#3 |
|
Well its expecting an '=' near the IF statement...I dont know what your trying to accomplish here..haha I dont know much about coding, maybe this is too advanced for me or sumthing
I see it now..Well you have a return function but no integer set...
__________________
Cover your eyes and run... gmansixfo= STEPMANIA LEGEND!!
|
|
|
|
|
|
|
#4 |
![]() ![]() ...in a dream...
|
u might also either add an 'end' at the end of the ifs at the end or just rename all but the first 1 'elseif'
__________________
...you'll never know what it's like... spending your whole life in a dream...
Launch a Kitten out of a Cannon and win real cash! Checkout my newly updated site for all my projects (Kitten Cannon, BOXHEAD, Light Cycle 3D) |
|
|
|
|
|
#6 |
![]() ![]() Muppet Magnet
|
Put an end after each of the ifs from line 41 onwards, e.g.
Code:
if pad:cross() then loadcross end Code:
loadcross = "crossfilename" loadtriangle = "trianglefilename" ... if pad:cross() then filetoload = loadcross end ... dofile(filetoload)
__________________
Using firmware v2.00-v3.50? Open up a whole world of homebrew here
The PSP Homebrew Database needs YOU! Your ISP may be illegally wiretapping all your web activity. Stop Phorm Now! Visiting the Edinburgh Festivals? Get practical advice from experts. |
|
|
|
|
|
#7 |
|
Hmm, ive never had to end after every IF statement...I dont code that much but thats new to me. THis helps me too i guess
__________________
Cover your eyes and run... gmansixfo= STEPMANIA LEGEND!!
|
|
|
|
|
![]() |
| Tags |
| code |
| Thread Tools | |
|
|