Raised This Month: $ Target: $400
 0% 

Solved Top15 cuts off 15th player


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Hectik17
AlliedModders Donor
Join Date: Oct 2005
Old 04-15-2017 , 11:43   Re: Top15 cuts off 15th player
Reply With Quote #1

i get errors and carnt compile

Code:
iLen = format( sBuffer, MAX_BUFFER_LENGTH,
                  "<head><META http-equiv=Content-Type content='text/html ;charset=UTF-8'></head><style>body{color:#FFFFFF;background-color:black;margin-top:5}.A{background-color:#003}.B{background-color:#025}td{font-size:10px}</style><center><b><font size=4>TOP15</b><table width=500>" )
	iLen += format( sBuffer[iLen], MAX_BUFFER_LENGTH - iLen,
                  "<tr bgcolor=#1025><td>%s<td>%s<td>%s<td>%s<td>%s<td>%s<td>%s<td>%s<td>%s<img src="http://cache.gametracker.com/server_info/45.121.211.119:27025/b_560_95_1.png">",
                  "#", lNick, lKills, lDeaths, lHits, lShots, lHs, lEff, lAcc )
	for (new i = 0; i < iMax && MAX_BUFFER_LENGTH - iLen > 0; i++)
	{
		if (equal(istate,"A")) copy(istate,3,"B")
                else copy(istate,3,"A")
		get_stats(i, izStats, izBody, t_sName, MAX_NAME_LENGTH)
		while( contain ( t_sName, "<" ) != -1 )

Last edited by Hectik17; 04-15-2017 at 11:44.
Hectik17 is offline
Adomaz1
Senior Member
Join Date: Feb 2014
Old 04-16-2017 , 03:39   Re: Top15 cuts off 15th player
Reply With Quote #2

Quote:
Originally Posted by Hectik17 View Post
i get errors and carnt compile

Code:
iLen = format( sBuffer, MAX_BUFFER_LENGTH,
                  "<head><META http-equiv=Content-Type content='text/html ;charset=UTF-8'></head><style>body{color:#FFFFFF;background-color:black;margin-top:5}.A{background-color:#003}.B{background-color:#025}td{font-size:10px}</style><center><b><font size=4>TOP15</b><table width=500>" )
	iLen += format( sBuffer[iLen], MAX_BUFFER_LENGTH - iLen,
                  "<tr bgcolor=#1025><td>%s<td>%s<td>%s<td>%s<td>%s<td>%s<td>%s<td>%s<td>%s<img src="http://cache.gametracker.com/server_info/45.121.211.119:27025/b_560_95_1.png">",
                  "#", lNick, lKills, lDeaths, lHits, lShots, lHs, lEff, lAcc )
	for (new i = 0; i < iMax && MAX_BUFFER_LENGTH - iLen > 0; i++)
	{
		if (equal(istate,"A")) copy(istate,3,"B")
                else copy(istate,3,"A")
		get_stats(i, izStats, izBody, t_sName, MAX_NAME_LENGTH)
		while( contain ( t_sName, "<" ) != -1 )
use <img src='your link'> instead of " "

Last edited by Adomaz1; 04-16-2017 at 03:39.
Adomaz1 is offline
Hectik17
AlliedModders Donor
Join Date: Oct 2005
Old 04-16-2017 , 11:02   Re: Top15 cuts off 15th player
Reply With Quote #3

Quote:
Originally Posted by Adomaz1 View Post
use <img src='your link'> instead of " "
that compiled thx

i ended up with this and that put the gametracker banner up top with the stats under it but it cut out the Nick Kills Deaths Titles copleatly

PHP Code:
    iLen formatsBufferMAX_BUFFER_LENGTH,
                  
"<head><META http-equiv=Content-Type content='text/html ;charset=UTF-8'></head><style>body{color:#FFFFFF;background-color:black;margin-top:5}.A{background-color:#003}.B{background-color:#025}td{font-size:10px}</style><center><b><font size=3>TOP10</b><table width=500>" )
    
iLen += formatsBuffer[iLen], MAX_BUFFER_LENGTH iLen,
                  
"<tr bgcolor=#1025><td>%s<td>%s<td>%s<td>%s<td>%s<td>%s<td>%s<td>%s<td>%s",
                  
"#"lNicklKillslDeathslHitslShotslHslEfflAcc )
    
iLen formatsBufferMAX_BUFFER_LENGTH
                  
"<head><META http-equiv=Content-Type content='text/html ;charset=UTF-8'></head><style>body{color:#FFFFFF;background-color:black;margin-top:5}.A{background-color:#003}.B{background-color:#025}td{font-size:10px}</style><center><b><font size=3>TOP10</b><table width=500>" 
    
iLen += formatsBuffer[iLen], MAX_BUFFER_LENGTH iLen,
        
"<tr><img src='http://cache.gametracker.com/server_info/45.121.211.119:27025/b_560_95_1.png'><tr>",
        
"<tr bgcolor=#1025><td>%s<td>%s<td>%s<td>%s<td>%s<td>%s<td>%s<td>%s<td>%s<tr>",
        
"#"lNicklKillslDeathslHitslShotslHslEfflAcc 
Hectik17 is offline
Reply



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 17:52.


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