Author Topic: Displaying values  (Read 1633 times)

0 Members and 1 Guest are viewing this topic.

Kon-Tiki

  • Guest
Displaying values
« on: April 17, 2003, 02:55:14 PM »
Does anybody know how to display or print the value of a var? Both would be even better.

-Kon-Tiki-



Offline Eero R

Re:Displaying values
« Reply #1 on: April 17, 2003, 03:07:44 PM »
For example:

display(0,0,"You've got %v100 bucks.");
print("You've got %v100 bucks and %v101 cents.");

Hope that's helpful... ;)
Persona grata ego sum...

MagickPoultry

  • Guest
Re:Displaying values
« Reply #2 on: April 17, 2003, 03:09:48 PM »
You use a percent sign.  For example,

print("You have %v50 pulsating ulcers on your back.");

and it works for display, too. Is that what you meant?

Oops, it appears someone beat me to it.
« Last Edit: April 17, 2003, 03:10:49 PM by MagickPoultry »

Kon-Tiki

  • Guest
Re:Displaying values
« Reply #3 on: April 17, 2003, 04:58:03 PM »
*Slaps himself on the forehead*
Should've known that. Have already used that as tests some time ago.
Thanks.

-Kon-Tiki-

Offline StrangeQuark

Re:Displaying values
« Reply #4 on: April 19, 2003, 09:37:48 AM »
Oops, it appears someone beat me to it.

MMIIIIIIIIIIIIIIIIIINNNDDPPIIIIIIIIIIIIIIISSSSSS!!!!!!!!!

Nobody here knows what I'm on about, so I'll just get my coat now...


SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.03 seconds with 17 queries.