Jump to content

Patraulea

Member
  • Posts

    4
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Romania

Posts posted by Patraulea

  1. I have the same problem (same code like RHAF). The cdshell.ini file is taked from here. In his picture is seen corectly. What is wrong ?

    P.S. Hope to understand my english.

    P.S.2 I solved my self. There were something wrong in the command line. RHAF adapt your command line from mine and see the differenes. From what i see the differences is those 2 \ lines and datemonth.

    P.S.3 Is there anyway to put time in 24H format?

    # Function to display time of day

    time:

    set hour = $timeHour

    set ampm = "am"

    if $timeHour == 00; then set hour = 12

    if $timeHour > 12; then set Hour = $timeHour - 12

    if $timeHour > 12; then set ampm = "pm"

    set time = "\$Hour:$timeMinute $ampm"

    # Function to display date

    date:

    set month = "n/a"

    if $dateMonth == 1; then set month = "Ian."

    if $dateMonth == 2; then set month = "Feb."

    if $dateMonth == 3; then set month = "Mar."

    if $dateMonth == 4; then set month = "Apr."

    if $dateMonth == 5; then set month = "Mai."

    if $dateMonth == 6; then set month = "Iun."

    if $dateMonth == 7; then set month = "Iul."

    if $dateMonth == 8; then set month = "Aug."

    if $dateMonth == 9; then set month = "Sep."

    if $dateMonth == 10; then set month = "Oct."

    if $dateMonth == 11; then set month = "Noi."

    if $dateMonth == 12; then set month = "Dec."

    set date = "\$dateDay/$dateMonth/$dateYear"

    # Printing the Interface

    menu:

    set textColor= color[white on black]

    set boldColor= color[cyan on black]

    cls

    print c "\n\cXXÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ<\c0A$time $date\cXX>ÄÄ \n\n"

    print c "\cXXMENIU PRINCIPAL \n\n"

    print l "\cXXApasa \c0AF1 \cXXpentru Ajutor \n"

    print c "\cXXÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ \n\n"

×
×
  • Create New...