Raised This Month: $ Target: $400
 0% 

Solved Broken table when supposed to work


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GasmoN
Member
Join Date: Jul 2014
Old 09-30-2021 , 13:01   Re: Broken table when supposed to work
Reply With Quote #1

First thing that I have changed is that I removed css style, and added link to the same style I uploaded to my website.
I wasn't going over that limit, because total characters number was 1220 (With all current nickanmes, kills and deaths included), BUT I have done some calculations and realised that if I have all 15 players with long nicknames (33 characters long), I would go over that limit.
So what I did, is checked output results again, and saw too many spaces in the html code. Then, after adding this
PHP Code:
while(replace(gMotdcharsmax(gMotd), "  </td>""</td>")) { } 
I reduced spaces in the output from 175 to 19. With the total characters count of 1064 this time. (With all current nickanmes, kills and deaths included)
So now, even if all players have nickanes of 33 characters (495 in total), and all of them have 99,999 kills and 99,999 deaths, the total number of characters would be 645. If we add 850 to that, which is characters count of table, without names, kills, and deaths, the total number will be 1,495. So problem solved.

Last edited by GasmoN; 09-30-2021 at 13:02.
GasmoN is offline
Reply


Thread Tools
Display Modes

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 20:26.


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