Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Very beginner needs help
#3
(Feb-03-2018, 11:35 PM)mcmxl22 Wrote:
    print("%s's Health: %s/%s   %s's Health: %s/%s" % playerc.name, playerc.health, playerc.maxhealth, enemy.name,
          enemy.health, enemy.maxhealth)
You either need to remove the / or make them //. If you need to print a slash between the names use //.

That didn't seem to change anything in this case, but I did figure out that all I needed was to encase it in more parenthesis. Silly mistake!
Reply


Messages In This Thread
Very beginner needs help - by bostltch - Feb-03-2018, 10:54 PM
RE: Very beginner needs help - by mcmxl22 - Feb-03-2018, 11:35 PM
RE: Very beginner needs help - by bostltch - Feb-03-2018, 11:50 PM
RE: Very beginner needs help - by Larz60+ - Feb-04-2018, 12:17 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020