Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, 7th_zorro, VoroneTZ, Quad), 901 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
adding the % sign after the txt. #466149
05/27/17 10:41
05/27/17 10:41
Joined: Jul 2001
Posts: 4,801
netherlands
Realspawn Offline OP

Expert
Realspawn  Offline OP

Expert

Joined: Jul 2001
Posts: 4,801
netherlands
i use this for scoring but i want a % sign right after that number.
Do i need to make a seperate txt thingy or can i add it somehow
to this script.

Code:
var percent =0;

FONT*	fnt7_pan = "Supercell-Magic#28b"; 
PANEL* pan_percent = {digits=178,650,"%02.0f",fnt7_pan,1,percent; 

	layer = 60;
	flags = SHOW;green=255; blue=255; red=255;
}



Find all my tutorials & Workshops at : www.rp-interactive.nl

Creativity starts in the brain
Re: adding the % sign after the txt. [Re: Realspawn] #466150
05/27/17 11:01
05/27/17 11:01
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline
Expert
alibaba  Offline
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
Use %%


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: adding the % sign after the txt. [Re: alibaba] #466151
05/27/17 11:06
05/27/17 11:06
Joined: Jul 2001
Posts: 4,801
netherlands
Realspawn Offline OP

Expert
Realspawn  Offline OP

Expert

Joined: Jul 2001
Posts: 4,801
netherlands
i never had figured this out laugh thx laugh is supose the reason to use double is cause % is also a programming sign ?


Last edited by Realspawn; 05/27/17 11:06.

Find all my tutorials & Workshops at : www.rp-interactive.nl

Creativity starts in the brain
Re: adding the % sign after the txt. [Re: Realspawn] #466153
05/27/17 15:42
05/27/17 15:42
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline
Expert
alibaba  Offline
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
Yes, you'd usually use the % sign to define a variable in a format string, so a %% implies that you just want to use the sign.


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: adding the % sign after the txt. [Re: alibaba] #466165
05/28/17 10:16
05/28/17 10:16
Joined: Jul 2001
Posts: 4,801
netherlands
Realspawn Offline OP

Expert
Realspawn  Offline OP

Expert

Joined: Jul 2001
Posts: 4,801
netherlands
Thank you for the explenation laugh i am doing a little tutorial so i will make sure to mention this laugh


Find all my tutorials & Workshops at : www.rp-interactive.nl

Creativity starts in the brain
Re: adding the % sign after the txt. [Re: Realspawn] #466786
07/02/17 22:02
07/02/17 22:02
Joined: Oct 2002
Posts: 2,256
Oz
L
Locoweed Offline
Expert
Locoweed  Offline
Expert
L

Joined: Oct 2002
Posts: 2,256
Oz
Good info there.


Professional A8.30
Spoils of War - East Coast Games

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1