View Single Post
  #1 (permalink)  
Old 03-30-2006, 03:53 PM
chrispy chrispy is offline
Senior Member
My Mood:
 
Join Date: Jan 2006
Posts: 351
Points: 41.54
Donate
Exclamation Lua question: am I being REALLY dumb?

Right, feel free to flame, Im at the end of my tether.
Whilst working on wormz (in bed, on my psp (if you dont know, wormz is DOS worms for PSP), I wrote the most simple while statement in existance, which comes into play in all lua programs, at least all of my lua programs anyway:
(text blanked out)

Code:
while true do pad = controls.read() screen:blit(0, 0, ui) screen:print(173 ,78, "XXXXXXXX", red) screen:print(145 ,100, "XXXXXXXX", yellow) screen:print(166, 192, "XXXXXXXX", yellow) screen.flip() if pad:start() then break end end
So please, dear god, why doesnt this work???

I tried running it direct from lowser, which was its usual helpful self (no script found)

I ran it in ttlde, and I got Function arguments expected, I think.

Please help me, Im still hungover

Last edited by chrispy : 03-30-2006 at 04:13 PM.
Reply With Quote