SHOW:
|
|
- or go back to the newest paste.
| 1 | - | --VARIABILI |
| 1 | + | |
| 2 | - | local lbl = "BN Credit" |
| 2 | + | |
| 3 | - | local tabr = {}
|
| 3 | + | |
| 4 | end | |
| 5 | ||
| 6 | m = peripheral.wrap("right") --magcard
| |
| 7 | lbl = "BN Credit" | |
| 8 | clear() | |
| 9 | print("VerificaSaldo (C) Lego11")
| |
| 10 | - | function pinErrato() |
| 10 | + | |
| 11 | print("Inserire la carta")
| |
| 12 | - | print("Errore di verifica del PIN")
|
| 12 | + | |
| 13 | za,rawCredito = os.pullEvent("mag_swipe")
| |
| 14 | - | print("Premere un tasto per uscire")
|
| 14 | + | |
| 15 | credito = tonumber(rawCredito) | |
| 16 | - | os.reboot() |
| 16 | + | |
| 17 | print("La carta ha una disponibilità di "..credito.." IC.")
| |
| 18 | print("")
| |
| 19 | print("Premere un tasto qualsiasi per uscire")
| |
| 20 | - | function cartaNonValida() |
| 20 | + | |
| 21 | os.reboot() |