Gamestudio Links
Zorro Links
Newest Posts
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
Data from CSV not parsed correctly
by jcl. 04/20/24 08:32
Zorro FIX plugin - Experimental
by jcl. 04/20/24 08:30
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (7th_zorro, Aku_Aku, 1 invisible), 579 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 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