Raised This Month: $ Target: $400
 0% 

[HTML] Lang File + HTML - Something Wrong?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 04-01-2014 , 17:36   Re: [HTML] Lang File + HTML - Something Wrong?
Reply With Quote #6

You are not escaping all the % correctly.
Code:
<!--{cke_protected}{C}%3C!%2D%2D.sty1%20%7Bcolor%3A%20%23cdcccb%3Bfont-family%3A%20Arial%2C%20Helvetica%2C%20sans-serif%3B%7D%2D%2D%3E-->		</style>
%20sans-serif will be read as an input. Numerical values between the selection of the data type will be read as limits. For example %.20s will force the input to be cut off after 20 characters. Exactly like %.2f that will only use 2 decimals for floats.
Example:
Code:
server_print("%.2s", "1234");
Code:
12


Code:
"^&quot;
That makes no sense at all. Especially when it's used on parameters:
Code:
<body bgcolor="^&quot;#000000^&quot;">
This would be fine as long as the text is defined outside of the pawn script.
Code:
<body bgcolor="#000000">
It's only the compiler that is reading " and defining them as termination of strings. If reading from any other source, like a file or a variable the runtime functions will only see this as 100010 / 0x22 / 34.

What happens when you save a string in pawn containing ^" is that the compiler replaces that with one cell only containing ". The ^ is just to tell the compiler to do so.

I would however leave it without quotes since you're almost touching that MOTD limit of 1536 characters, making ML very limited. Save all the space you can.
__________________

Last edited by Black Rose; 04-01-2014 at 17:46.
Black Rose is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:58.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode