adding the % sign after the txt.

Posted By: Realspawn

adding the % sign after the txt. - 05/27/17 10:41

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;
}

Posted By: alibaba

Re: adding the % sign after the txt. - 05/27/17 11:01

Use %%
Posted By: Realspawn

Re: adding the % sign after the txt. - 05/27/17 11:06

i never had figured this out laugh thx laugh is supose the reason to use double is cause % is also a programming sign ?

Posted By: alibaba

Re: adding the % sign after the txt. - 05/27/17 15:42

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.
Posted By: Realspawn

Re: adding the % sign after the txt. - 05/28/17 10:16

Thank you for the explenation laugh i am doing a little tutorial so i will make sure to mention this laugh
Posted By: Locoweed

Re: adding the % sign after the txt. - 07/02/17 22:02

Good info there.
© 2024 lite-C Forums