Seite 59 von 342 ErsteErste ... 9 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 109 159 ... LetzteLetzte
Zeige Ergebnis 1.741 bis 1.770 von 10238

Lua Programming Help Thread

This is a discussion on Lua Programming Help Thread within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Zitat von Grimfate126 hey youaresam, i dunt understand the math.ceil function much.. so howo can you do this? if analog ...

  
  1. #1741
    Points: 24.247, Level: 94
    Level completed: 90%, Points required for next Level: 103
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    texas
    Beiträge
    2.803
    Points
    24.247
    Level
    94
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Grimfate126
    hey youaresam, i dunt understand the math.ceil function much.. so howo can you do this? if analog stik moves LEFT, the speed = speed-1 . if analog stik moves RIGHT, then speed = speed+1. thx!
    math.ceil(number) returns the valuse put in, and if there is any decimal value, it goes up one. like:
    5 would be 5
    5.1 would be 6
    5.7 would be 6
    8 would be 8
    8.4 would be 9

    I just came up with a formula that would return 1 or -1 based on if the number was positive or negative. Yeah, its a bit confusing, but it should work.


    牧来栠摩琠敨映汩獥
    PSN: youresam
    From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
    --Mike Hollingsworth

  2. #1742
    <img src="images/smilies/psp.gif" border="0" alt="" title="" cl***="inlineimg" /> <img src="images/smilies/Punk.gif" border="0" alt="" title="" cl***=&
    Points: 11.105, Level: 69
    Level completed: 64%, Points required for next Level: 145
    Overall activity: 0%

    Registriert seit
    Jun 2005
    Ort
    Canada
    Beiträge
    1.944
    Points
    11.105
    Level
    69
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von bronxbomber92
    can any explain how i could ask a question in my lua game? i am gonna be making a trivia game (no details) and for example i might wanna ask "who is the president of the U.S." then i would give for options for an answer (mutiple choice) so i would be like "a- george bush, b-clinton, c- bob villa, d- Bronxbomber92" can any1 help me out with this? thanks
    look at PSPMillionaire,, that show you what you want

  3. #1743
    Your Fate is Grim...
    Points: 11.640, Level: 70
    Level completed: 98%, Points required for next Level: 10
    Overall activity: 0%

    Registriert seit
    Oct 2005
    Beiträge
    2.269
    Points
    11.640
    Level
    70
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von youresam
    math.ceil(number) returns the valuse put in, and if there is any decimal value, it goes up one. like:
    5 would be 5
    5.1 would be 6
    5.7 would be 6
    8 would be 8
    8.4 would be 9

    I just came up with a formula that would return 1 or -1 based on if the number was positive or negative. Yeah, its a bit confusing, but it should work.
    can u tell me the code pls?
    --------------------------------------------------------------------------------------

  4. #1744
    Points: 5.745, Level: 48
    Level completed: 98%, Points required for next Level: 5
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Beiträge
    404
    Points
    5.745
    Level
    48
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von youresam
    I'll help you out tomorrow after school, what exactly do you want it to do?
    i want do make one text appear with out delay , and then make another text appear but with a seperate group so i need to put screen.flip again etc or make it with the same group
    I think i missing a code that is not at http://wiki.ps2dev.org/psp:lua_player:functions
    please write a code
    Bequiet!!!
    I'm learning cc©cc

  5. #1745
    Points: 4.133, Level: 40
    Level completed: 92%, Points required for next Level: 17
    Overall activity: 0%

    Registriert seit
    Apr 2006
    Ort
    Bay Area, California
    Beiträge
    26
    Points
    4.133
    Level
    40
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Grimfate126
    can u tell me the code pls?
    what do want the "code" to do? your question makes no sense because wtf is a code?!!

  6. #1746
    Points: 24.247, Level: 94
    Level completed: 90%, Points required for next Level: 103
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    texas
    Beiträge
    2.803
    Points
    24.247
    Level
    94
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von natan333
    i want do make one text appear with out delay , and then make another text appear but with a seperate group so i need to put screen.flip again etc or make it with the same group
    I think i missing a code that is not at http://wiki.ps2dev.org/psp:lua_player:functions
    please write a code
    Ok...
    Here, this will display "Hello", then if you press cross, it will say "Goodbye" for 1 second.

    green = Color.new(0,255,0)
    while true do
    screen:clear()
    screen:print(10,10,"Hello ",green)
    pad = Controls.read()
    if pad:cross() then
    screen:clear()
    screen:print(10,10,"Goodb ye",green)
    screen.flip()
    screen.waitVblankStart(60 )
    end
    if pad:start() then break end
    screen.waitVblankStart()
    screen.flip()
    end


    And, yes, the tutorial Shine wrote has everything you need. Back when I learned, Shines tutorials were half way done! (And of course, there were NO other LuaPlayer tutorials what-so-ever)
    牧来栠摩琠敨映汩獥
    PSN: youresam
    From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
    --Mike Hollingsworth

  7. #1747
    Your Fate is Grim...
    Points: 11.640, Level: 70
    Level completed: 98%, Points required for next Level: 10
    Overall activity: 0%

    Registriert seit
    Oct 2005
    Beiträge
    2.269
    Points
    11.640
    Level
    70
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von siqq
    what do want the "code" to do? your question makes no sense because wtf is a code?!!
    im sorry. :Cry: :Cry:

    my codeso far)

    Code:
    speed = 0
    
    pad = Controls.read()
    dx = pad:analogX()
    dy = pad:analogY()
    
    	if math.abs(dx) > 32 then
    		cursorx = cursorx + dx / 64
    	end
    	
    	if math.abs(dy) > 32 then
    		cursory = cursory + dy / 64
    	end
    end
    i want it so that when the analog stik goes LEFT, the speed will decrease, and when it goes RIGHT, the speed will increase.

    thx for ur help(yoursam), and sry for pissing u off(sigg)
    --------------------------------------------------------------------------------------

  8. #1748
    Points: 24.247, Level: 94
    Level completed: 90%, Points required for next Level: 103
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    texas
    Beiträge
    2.803
    Points
    24.247
    Level
    94
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Grimfate126
    im sorry. :Cry: :Cry:

    my codeso far)

    -code-

    i want it so that when the analog stik goes LEFT, the speed will decrease, and when it goes RIGHT, the speed will increase.

    thx for ur help(yoursam), and sry for pissing u off(sigg)
    I already showed you my formula.

    height = height + math.ceil(1/dx)

    Modify it to your needs. Basically, if dx is positive, it adds 1 to height. if its negative, it subtracts 1 from height.

    OR if you want to add or subtract more, just put a number at the end. For example, to add or subtract 4, do this:

    height = height + math.ceil(1/dx)4
    Geändert von youresam (04-20-2006 um 02:14 PM Uhr)
    牧来栠摩琠敨映汩獥
    PSN: youresam
    From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
    --Mike Hollingsworth

  9. #1749
    Points: 4.133, Level: 40
    Level completed: 92%, Points required for next Level: 17
    Overall activity: 0%

    Registriert seit
    Apr 2006
    Ort
    Bay Area, California
    Beiträge
    26
    Points
    4.133
    Level
    40
    Downloads
    0
    Uploads
    0

    Standard

    im new to lua but i do know javascript and you forgot to declare 2 of your variables cursorx and cursory

  10. #1750
    Your Fate is Grim...
    Points: 11.640, Level: 70
    Level completed: 98%, Points required for next Level: 10
    Overall activity: 0%

    Registriert seit
    Oct 2005
    Beiträge
    2.269
    Points
    11.640
    Level
    70
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von siqq
    im new to lua but i do know javascript and you forgot to declare 2 of your variables cursorx and cursory
    that was just PART of my code.;) i have already defined the varibles. and thx yoursam!
    --------------------------------------------------------------------------------------

  11. #1751
    Your Fate is Grim...
    Points: 11.640, Level: 70
    Level completed: 98%, Points required for next Level: 10
    Overall activity: 0%

    Registriert seit
    Oct 2005
    Beiträge
    2.269
    Points
    11.640
    Level
    70
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von youresam
    I already showed you my formula.

    height = height + math.ceil(1/dx)

    Modify it to your needs. Basically, if dx is positive, it adds 1 to height. if its negative, it subtracts 1 from height.

    OR if you want to add or subtract more, just put a number at the end. For example, to add or subtract 4, do this:

    height = height + math.ceil(1/dx)4
    hey. i tried this:
    Code:
    if math.abs(dx) > 32 then
    		cursorx = cursorx + dx / 64
                                dudex = dudex + dx/64
                                speed = speed+math.ceil(1/dx)
                     end
    
    	if math.abs(dy) > 32 then
    		cursory = cursory + dy / 64
                                dudey = dudey + dy/64
                     end
    end
    but it only ADDS 1 to speed when i move RIGHT, and does nothing when i move left. wtf?? sry, i know im really n00bish, and ty for being patient with me, but i have no idea how to make this work.

    BTW: i have deifned all my variables.
    Geändert von Grimfate126 (04-20-2006 um 03:45 PM Uhr)
    --------------------------------------------------------------------------------------

  12. #1752
    Points: 24.247, Level: 94
    Level completed: 90%, Points required for next Level: 103
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    texas
    Beiträge
    2.803
    Points
    24.247
    Level
    94
    Downloads
    0
    Uploads
    0

    Standard

    Code:
    if math.abs(dx) > 32 then
    		cursorx = cursorx + dx / 64
                                dudex = dudex + dx/64
                     end
    
    	if math.abs(dy) > 32 then
    		cursory = cursory + dy / 64
                                dudey = dudey + dy/64
                                speed = speed+math.ceil(1/dy)
                  end
    end
    Umm.. what is the variable you want to change? You dont have a formula in there...
    牧来栠摩琠敨映汩獥
    PSN: youresam
    From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
    --Mike Hollingsworth

  13. #1753
    Your Fate is Grim...
    Points: 11.640, Level: 70
    Level completed: 98%, Points required for next Level: 10
    Overall activity: 0%

    Registriert seit
    Oct 2005
    Beiträge
    2.269
    Points
    11.640
    Level
    70
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von youresam
    Code:
    if math.abs(dx) > 32 then
    		cursorx = cursorx + dx / 64
                                dudex = dudex + dx/64
                     end
    
    	if math.abs(dy) > 32 then
    		cursory = cursory + dy / 64
                                dudey = dudey + dy/64
                                speed = speed+math.ceil(1/dy)
                  end
    end
    Umm.. what is the variable you want to change? You dont have a formula in there...
    i want to change speed. everything else works fine, but when i move the analok stick right, it add to the speed, BUT when i move it left, it does nothing to the speed.
    --------------------------------------------------------------------------------------

  14. #1754
    Points: 24.247, Level: 94
    Level completed: 90%, Points required for next Level: 103
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    texas
    Beiträge
    2.803
    Points
    24.247
    Level
    94
    Downloads
    0
    Uploads
    0

    Standard

    Code:
    if math.abs(dx) > 32 then
    		cursorx = cursorx + dx / 64
                                dudex = dudex + dx/64
                                speed = speed+math.ceil(1/dx)
                     end
    
    	if math.abs(dy) > 32 then
    		cursory = cursory + dy / 64
                                dudey = dudey + dy/64
                                speed = speed+math.ceil(1/dy)
                  end
    end
    like that?
    牧来栠摩琠敨映汩獥
    PSN: youresam
    From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
    --Mike Hollingsworth

  15. #1755
    Your Fate is Grim...
    Points: 11.640, Level: 70
    Level completed: 98%, Points required for next Level: 10
    Overall activity: 0%

    Registriert seit
    Oct 2005
    Beiträge
    2.269
    Points
    11.640
    Level
    70
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von youresam
    Code:
    if math.abs(dx) > 32 then
    		cursorx = cursorx + dx / 64
                                dudex = dudex + dx/64
                                speed = speed+math.ceil(1/dx)
                     end
    
    	if math.abs(dy) > 32 then
    		cursory = cursory + dy / 64
                                dudey = dudey + dy/64
                                speed = speed+math.ceil(1/dy)
                  end
    end
    like that?
    if i do that, then when i move the analog stick right, it add 1 and if i move it down, it also adds 1. BUT what i want, is this:

    if analog stick moves right, then speed increases, if i move it left, then speed decreases.
    --------------------------------------------------------------------------------------

  16. #1756
    Points: 24.247, Level: 94
    Level completed: 90%, Points required for next Level: 103
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    texas
    Beiträge
    2.803
    Points
    24.247
    Level
    94
    Downloads
    0
    Uploads
    0

    Standard

    Code:
    if math.abs(dx) > 32 then
    		cursorx = cursorx + dx / 64
                                dudex = dudex + dx/64
                                speed = speed+ math.ceil(dx/128)
                     end
    
    	if math.abs(dy) > 32 then
    		cursory = cursory + dy / 64
                                dudey = dudey + dy/64
                  end
    end
    Whoops, I had my formula wrong, sorry. This will add or subtract 1.
    Or, if you want it to be the more you push the analog, the faster it moves, just use speed = speed + (dx/64)
    牧来栠摩琠敨映汩獥
    PSN: youresam
    From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
    --Mike Hollingsworth

  17. #1757
    QJ Gamer Gold
    Points: 17.453, Level: 84
    Level completed: 21%, Points required for next Level: 397
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    everywhere
    Beiträge
    3.526
    Points
    17.453
    Level
    84
    Downloads
    1
    Uploads
    0

    Standard

    hello ever1 well if havent seen i've been working on a game: pspaintball and recently released v 0.1 so i want to implement wifi within the next few versions and i remeber a while back seeing sometin about lua wifi libary's now then heres my question:

    A: fanjita got wifi for lua to work in 2.1+ correctly?
    B:are there any tut's yet made for how to implement wifi into lua
    C: if so where
    D:anyway to check if it works or not as of i don't have a wifi connection spot
    E: thats about it=-)
    1. Failed....again...
    2. http://slicer.gibbocool.com/ stay updated on all my projects
    3. it'll be 5 years in june, that's nearly 1/4 of my life on this planet that i've visited these forums, what a ride it has been

  18. #1758
    Your Fate is Grim...
    Points: 11.640, Level: 70
    Level completed: 98%, Points required for next Level: 10
    Overall activity: 0%

    Registriert seit
    Oct 2005
    Beiträge
    2.269
    Points
    11.640
    Level
    70
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von youresam
    Code:
    if math.abs(dx) > 32 then
    		cursorx = cursorx + dx / 64
                                dudex = dudex + dx/64
                                speed = speed+ math.ceil(dx/128)
                     end
    
    	if math.abs(dy) > 32 then
    		cursory = cursory + dy / 64
                                dudey = dudey + dy/64
                  end
    end
    Whoops, I had my formula wrong, sorry. This will add or subtract 1.
    Or, if you want it to be the more you push the analog, the faster it moves, just use speed = speed + (dx/64)

    thx! tat worked!
    --------------------------------------------------------------------------------------

  19. #1759
    QJ Gamer Gold
    Points: 17.453, Level: 84
    Level completed: 21%, Points required for next Level: 397
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    everywhere
    Beiträge
    3.526
    Points
    17.453
    Level
    84
    Downloads
    1
    Uploads
    0

    Standard

    offtopic --
    grim i read your sig sorry but not sure what h2so4 it is?

    --sorry bout offtopicness
    1. Failed....again...
    2. http://slicer.gibbocool.com/ stay updated on all my projects
    3. it'll be 5 years in june, that's nearly 1/4 of my life on this planet that i've visited these forums, what a ride it has been

  20. #1760
    Points: 24.247, Level: 94
    Level completed: 90%, Points required for next Level: 103
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    texas
    Beiträge
    2.803
    Points
    24.247
    Level
    94
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von slicer4ever
    offtopic --
    grim i read your sig sorry but not sure what h2so4 it is?

    --sorry bout offtopicness
    h2so4 = sulfuric acid.

    grim: glad it works!
    牧来栠摩琠敨映汩獥
    PSN: youresam
    From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
    --Mike Hollingsworth

  21. #1761
    QJ Gamer Gold
    Points: 17.453, Level: 84
    Level completed: 21%, Points required for next Level: 397
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    everywhere
    Beiträge
    3.526
    Points
    17.453
    Level
    84
    Downloads
    1
    Uploads
    0

    Standard

    ok well anywho can any1 answer my question?
    1. Failed....again...
    2. http://slicer.gibbocool.com/ stay updated on all my projects
    3. it'll be 5 years in june, that's nearly 1/4 of my life on this planet that i've visited these forums, what a ride it has been

  22. #1762
    Points: 24.247, Level: 94
    Level completed: 90%, Points required for next Level: 103
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    texas
    Beiträge
    2.803
    Points
    24.247
    Level
    94
    Downloads
    0
    Uploads
    0

    Standard

    Sure. Dont make it online.

    Any more questions?
    牧来栠摩琠敨映汩獥
    PSN: youresam
    From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
    --Mike Hollingsworth

  23. #1763
    QJ Gamer Gold
    Points: 17.453, Level: 84
    Level completed: 21%, Points required for next Level: 397
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    everywhere
    Beiträge
    3.526
    Points
    17.453
    Level
    84
    Downloads
    1
    Uploads
    0

    Standard

    hello ever1 well if havent seen i've been working on a game: pspaintball and recently released v 0.1 so i want to implement wifi within the next few versions and i remeber a while back seeing sometin about lua wifi libary's now then heres my question:

    A: has fanjita got wifi for lua to work in 2.1+ correctly?
    B:are there any tut's yet made for how to implement wifi into lua
    C: if so where
    D:anyway to check if it works or not as of i don't have a wifi connection spot
    E: thats about it=-)
    i was asking if some people could direct me to where i could learn this stuff i at least arg never mind this is surpose to be a help thread and yea you apparently can't help
    1. Failed....again...
    2. http://slicer.gibbocool.com/ stay updated on all my projects
    3. it'll be 5 years in june, that's nearly 1/4 of my life on this planet that i've visited these forums, what a ride it has been

  24. #1764
    is not posting very often
    Points: 33.152, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 99,6%

    Registriert seit
    Feb 2006
    Ort
    omnipresent
    Beiträge
    5.162
    Points
    33.152
    Level
    100
    Downloads
    0
    Uploads
    0

    Standard

    A.fanjita HAS got wifi to wor for lua, i think it saeemed to for me and im 2.6
    B. You dont need tut's, get netlib.
    C. search the dl section for netlib
    D. Thats dumb you cant check if it works then unless you get some beta tester's which you'd need to anyway.
    E. Of course you could also use infrared....
    What did we think the world would look like in 2015?

    Zitat Zitat von Abe
    Either way, if you don't know, don't guess. Stick to answering questions about stuff you're qualified to answer, like Pokemon questions or something along those lines.
    http://forums.qj.net/501501-post26.html

  25. #1765
    11th Squad Captain
    Points: 26.490, Level: 97
    Level completed: 14%, Points required for next Level: 860
    Overall activity: 0%

    Registriert seit
    Jun 2005
    Ort
    You are here -----> 名前: アダム | 飲むコー&#1
    Beiträge
    2.562
    Points
    26.490
    Level
    97
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Glynnder- PSPro
    A.fanjita HAS got wifi to wor for lua, i think it saeemed to for me and im 2.6
    B. You dont need tut's, get netlib.
    C. search the dl section for netlib
    D. Thats dumb you cant check if it works then unless you get some beta tester's which you'd need to anyway.
    E. Of course you could also use infrared....
    I also have a small question redgarding wifi .
    I wanna implent 2 Player into a certain game,
    BUT i dont have 2 PSP's and neither doe's my friend.
    I Do however have WifiMax if that can help??

    Sorry i just woke up .
    FAVORITE GAME! - BEER & ANIME! - SO EXICTING!

    開発者, 携帯用プログラマー 日本サポータおよび恋人 本名のアダムの鍛冶屋
    Currently Working On: - Flashmod V2.50 - Flashmod V2.60
    Currently Drinking: Coffee! - 私はコーヒーを飲む
    Chao Garden: DEMO v0.6
    Chao Garden V0.5b Review!

  26. #1766
    is not posting very often
    Points: 33.152, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 99,6%

    Registriert seit
    Feb 2006
    Ort
    omnipresent
    Beiträge
    5.162
    Points
    33.152
    Level
    100
    Downloads
    0
    Uploads
    0

    Standard

    if you have one psp and ur frend has on psp then borrow it.

    either that or get a beta tester with 2 psp's to test it 4 ya!
    What did we think the world would look like in 2015?

    Zitat Zitat von Abe
    Either way, if you don't know, don't guess. Stick to answering questions about stuff you're qualified to answer, like Pokemon questions or something along those lines.
    http://forums.qj.net/501501-post26.html

  27. #1767
    11th Squad Captain
    Points: 26.490, Level: 97
    Level completed: 14%, Points required for next Level: 860
    Overall activity: 0%

    Registriert seit
    Jun 2005
    Ort
    You are here -----> 名前: アダム | 飲むコー&#1
    Beiträge
    2.562
    Points
    26.490
    Level
    97
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Glynnder- PSPro
    if you have one psp and ur frend has on psp then borrow it.

    either that or get a beta tester with 2 psp's to test it 4 ya!
    Why o why did my friend update ...
    he doesn't even have GTA .
    I guess i will need to get some beta testers.
    Also is there a way Lua can verify the psp's mac address?
    or anything so i can check that its on a certain psp.
    If not then thats okay as i can do it in C anyways ...
    FAVORITE GAME! - BEER & ANIME! - SO EXICTING!

    開発者, 携帯用プログラマー 日本サポータおよび恋人 本名のアダムの鍛冶屋
    Currently Working On: - Flashmod V2.50 - Flashmod V2.60
    Currently Drinking: Coffee! - 私はコーヒーを飲む
    Chao Garden: DEMO v0.6
    Chao Garden V0.5b Review!

  28. #1768
    QJ Gamer Green
    Points: 5.559, Level: 48
    Level completed: 5%, Points required for next Level: 191
    Overall activity: 0%

    Registriert seit
    Jan 2006
    Beiträge
    506
    Points
    5.559
    Level
    48
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von youresam
    Hey guys, I got a quick question. (And, whoever helps me with this scores a cool 500 points)

    I need to know more about object orientation, and maybe an example on how to use the variable "self". And whats a metatable?
    Ok I have never used this, but this guy is pretty good with LUA i might say, here's a tut about classes and metatables and other stuff:
    http://lordlaurin.lo.funpic.de/devbo....php?p=457#457

    Hope that helps.
    LUA manual:
    [url]http://www.lua.org/manual/5.0/manual.html[/url]

    LUA Wiki:
    [url]http://wiki.ps2dev.org/psp:lua_player[/url]

  29. #1769
    is not posting very often
    Points: 33.152, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 99,6%

    Registriert seit
    Feb 2006
    Ort
    omnipresent
    Beiträge
    5.162
    Points
    33.152
    Level
    100
    Downloads
    0
    Uploads
    0

    Standard

    when did youresame say that.

    And sorry c5cha but i cnt help u on that, i dont think there is.
    What did we think the world would look like in 2015?

    Zitat Zitat von Abe
    Either way, if you don't know, don't guess. Stick to answering questions about stuff you're qualified to answer, like Pokemon questions or something along those lines.
    http://forums.qj.net/501501-post26.html

  30. #1770
    sceKernelExitGame();
    Points: 19.955, Level: 89
    Level completed: 21%, Points required for next Level: 395
    Overall activity: 0%

    Registriert seit
    Jan 2006
    Ort
    New York
    Beiträge
    3.126
    Points
    19.955
    Level
    89
    Downloads
    0
    Uploads
    0

    Standard

    can any1 help me out and tell me wat this error is? error: script.lua:41: <eof> expected near `end'

    it came up when i tried using windows lua player...


 

Tags for this Thread

Forumregeln

  • Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
  • Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
  • Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
  • Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.
  •  





Alle Zeitangaben in WEZ -8. Es ist jetzt 08:59 PM Uhr.

Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © , Caputo Media, LLC. All Rights Reserved. Cluster .