| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 
 | >>> # -*- coding: cp1252 -*-
def warrock(a,b,m,p,g,gg):
          i=0
	  while i<1:
              i=i+1
	      print "Nombre de kill=",a # Indiquer un nombre suivi de .0
	      o=0
	      while o<1:
                  o=o+1
		  print "Nombre de death=",b # Indiquer un nombre suivi de .0
		  print "Kill/death rate=",a/b
		  print "Argent=",m
	  if a>2000:
              print "Level up,you are now sergent <<>>"
          if (a/b)>3:
              print "Good job,you are enough good to be in knights legacy clan!"
          if (a/b)<1:
              print "Come on,you aim like my grandmother!!!"
 
          game=["Cqc","Urban Ops"]
          print game[g]  # Indiquer un nombre compris entre 0 et 1
          print "Loading Game...->",
 
          if g is 0:
              cqc=["Marien","Khali","Red Clover","Cold Cave"]
              print cqc[gg] # Indiquer un nombre compris entre 0 et 3
          if g is 1:
              urban=["Montana","Alberon","Nerbil","Havana"]
              print urban[gg]
 
          player=['Engineer->','Medic->','Sniper->','Assault->']
          print player[p], # Indiquer un nombre compris entre 0 et 3
 
          gun=["Mp5->","Mp5->","M24->","K2->"]
          print gun[p],
 
          ammo=["30","30","5","30"]
          print ammo[p]
 
          def itemshop():
 
              print "Weapons you can buy=",weapon
              weapon=["Psg","Ssg","K1","Famas","Desert Eagle","Magnum"]
 
 
          def buy(item):
                  print weapon[item],
                  print "Is Now At Your Disposal"
 
 
>>> itemshop()
 
Traceback (most recent call last):
  File "<pyshell#55>", line 1, in <module>
    itemshop()
NameError: name 'itemshop' is not defined | 
Partager