Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("left")
- Joueur = {mise = 0}
- __meta = {__index = Joueur}
- function Joueur.new(miseDepart, nom, id)
- self.mise = miseDepart
- self.pseudo = nom
- return setmetatable({}, __meta)
- end
- object = Joueur.new(100,"spike",42)
- object.mise = 100
- print(object.pseudo)
- tableau = {}
- tableau.insert(tableau,"joueur"..cpt)
- while true do
- id,mess = rednet.receive()
- if (mess == "jouer") then
- joueur..cpt = Joueur.new(0,"inconnu",id)
- end
- print(id)
- print(mess)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement