[SOLVED] MOTD Help!
Hello, I'm having little bit motd problems. I'm getting the motd from a .txt file, and then showing it in a motd, but it everything doesn't show. I already tried raising the size of the string where the text is stored, 3 times.
I raised the size with 500, all those 3 times.
Here's how it looks like in-game:
[IMG]http://img709.**************/img709/299/42246110.jpg[/IMG]
You see that it just stops there, by that H, and that table shouldn't look like that.
Here's how it should look like: http://91.90.27.66/pointmod_motd.html
Here's the .txt file:
PHP Code:
<html>
<style type="text/css">
<!--
.style2 {color: #00CC00}
.style3 {color: #009900}
.style4 {
color: #00CC00;
font-size: 24px;
font-weight: bold;
}
-->
</style>
<body style="background-color:black;color:white;font-size:16"><br>
<div align="center">
<h1>SG HNS Point Mod v1.0</h1>
<h2>by zacky</h2>
<p><br>
HNS Point Mod is an addon for HideNSeek, where you get<br>
points depending on how well you play the game.<br>
There are two types of points: KILL- and HIDE-Points.</p>
Here are the ways to get points:<br>
<table width="27%" height="127" border="5" bgcolor="#000000">
<tr>
<th bgcolor="#000000" scope="col"><span class="style1">Type</span></th>
<th bgcolor="#000000" scope="col"><span class="style1">Points</span></th>
</tr>
<tr>
<th bgcolor="#333333" scope="row"><span class="style1">Survive Hold Round as T </span></th>
<td bgcolor="#333333"><div align="center">25 HIDE-Points</div></td>
</tr>
<tr>
<th bgcolor="#333333" scope="row"><span class="style1">HeadShot</span></th>
<td bgcolor="#333333"><div align="center">30 KILL-Points</div></td>
</tr>
<tr>
<th bgcolor="#333333" scope="row"><span class="style1">Kill</span></th>
<td bgcolor="#333333"><div align="center">20 KILL-Points</div></td>
</tr>
<tr>
<th bgcolor="#333333" scope="row"><span class="style1">Suicide</span></th>
<td bgcolor="#333333"><div align="center">-5 KILL- & HIDE-Points</div></td>
</tr>
</table>
Each round you survive as a terrorist, you'll get 10 more HIDE-Points<br>
<br>
With those points you can buy items.<br>
There are two shops, one for both types of point:<br>
- In the first shop you can buy stuff that<br>
makes it easier for you to kill other players.<br>
- In the second shop you can buy stuff that's<br>
really good for you when you are a terrorist,<br>
stuff like stealth, respawn chance etc.<br>
NOTE: You can also use those when you are CT.<br>
<br>
Enjoy - zacky & RelaxMazter<br>
<p class="style4 style2">Kill-Points Shop</p>
<table width="47%" height="227" border="5" bgcolor="#000000">
<tr>
<th bgcolor="#000000" scope="col"><span class="style1">Name</span></th>
<th bgcolor="#000000" scope="col"><span class="style1">Interval</span></th>
<th bgcolor="#000000" scope="col"><span class="style1">Max Level</span></th>
<th bgcolor="#000000" scope="col"><span class="style1">Max</span></th>
<th bgcolor="#000000" scope="col"><span class="style1">Info</span></th>
</tr>
<tr>
<th bgcolor="#333333" scope="row"><span class="style1">Extra Health</span></th>
<td bgcolor="#333333"><div align="center"><span class="style1">25</span> <span class="style1">HP</span></div></td>
<td bgcolor="#333333"><div align="center" class="style1">6</div></td>
<td bgcolor="#333333"><div align="center" class="style1">150 HP</div></td>
<td bgcolor="#333333"><span class="style1">More HP</span></td>
</tr>
<tr>
<th bgcolor="#333333" scope="row"><span class="style1">Extra Armor</span></th>
<td bgcolor="#333333"><div align="center" class="style1">60 AP</div></td>
<td bgcolor="#333333"><div align="center" class="style1">5</div></td>
<td bgcolor="#333333"><div align="center" class="style1">300 AP</div></td>
<td bgcolor="#333333"><span class="style1">More Armor</span></td>
</tr>
<tr>
<th bgcolor="#333333" scope="row"><span class="style1">Stealth</span></th>
<td bgcolor="#333333"><div align="center" class="style1">15%</div></td>
<td bgcolor="#333333"><div align="center" class="style1">4</div></td>
<td bgcolor="#333333"><div align="center" class="style1">60%</div></td>
<td bgcolor="#333333"><span class="style1">Stealth</span></td>
</tr>
<tr>
<th bgcolor="#333333" scope="row"><span class="style1">Fall Damage Reducer</span></th>
<td bgcolor="#333333"><div align="center" class="style1">10%</div></td>
<td bgcolor="#333333"><div align="center" class="style1">6</div></td>
<td bgcolor="#333333"><div align="center" class="style1">60%</div></td>
<td bgcolor="#333333"><span class="style1">Fall Damage Reducer</span></td>
</tr>
<tr>
<th bgcolor="#333333" scope="row"><span class="style1">Faster Running</span></th>
<td bgcolor="#333333"><div align="center" class="style1">2%</div></td>
<td bgcolor="#333333"><div align="center" class="style1">5</div></td>
<td bgcolor="#333333"><div align="center" class="style1">10%</div></td>
<td bgcolor="#333333"><span class="style1">Run Faster</span></td>
</tr>
<tr>
<th bgcolor="#333333" scope="row"><span class="style1">Respawn Chance</span></th>
<td bgcolor="#333333"><div align="center" class="style1">(10% T |20% CT)</div></td>
<td bgcolor="#333333"><div align="center" class="style1">5</div></td>
<td bgcolor="#333333"><div align="center" class="style1">(50% T |100% CT)</div></td>
<td bgcolor="#333333"><span class="style1">Chance to respawn</span></td>
</tr>
<tr>
<th bgcolor="#333333" scope="row"><span class="style1">HE Grenade Chance (T)</span></th>
<td bgcolor="#333333"><div align="center" class="style1">10%</div></td>
<td bgcolor="#333333"><div align="center" class="style1">5</div></td>
<td bgcolor="#333333"><div align="center" class="style1">50%</div></td>
<td bgcolor="#333333"><span class="style1">Chance to get HE</span></td>
</tr>
<tr>
<th bgcolor="#333333" scope="row"><span class="style1">Heat Seeking HE (T)</span></th>
<td bgcolor="#333333"><div align="center" class="style1">100%</div></td>
<td bgcolor="#333333"><div align="center" class="style1">1</div></td>
<td bgcolor="#333333"><div align="center" class="style1">100%</div></td>
<td bgcolor="#333333"><span class="style1">Make HE Heat Seeking</span></td>
</tr>
</table>
<p><span class="style4">Hide-Points Shop</span><br>
</p>
<table width="47%" height="152" border="5" bgcolor="#000000">
<tr>
<th bgcolor="#000000" scope="col"><span class="style1">Name</span></th>
<th bgcolor="#000000" scope="col"><span class="style1">Interval</span></th>
<th bgcolor="#000000" scope="col"><span class="style1">Max Level</span></th>
<th bgcolor="#000000" scope="col"><span class="style1">Max</span></th>
<th bgcolor="#000000" scope="col"><span class="style1">Info</span></th>
</tr>
<tr>
<th bgcolor="#333333" scope="row"><div align="center" class="style1">Extra Damage</div></th>
<td bgcolor="#333333"><div align="center" class="style1">10+</div></td>
<td bgcolor="#333333"><div align="center" class="style1">5</div></td>
<td bgcolor="#333333"><div align="center"><span class="style1">50</span></div></td>
<td bgcolor="#333333"><span class="style1">Inflict more damage</span></td>
</tr>
<tr>
<th bgcolor="#333333" scope="row"><span class="style1">Nub Slash</span></th>
<td bgcolor="#333333"><div align="center"><span class="style1">-</span></div></td>
<td bgcolor="#333333"><div align="center"><span class="style1">1</span></div></td>
<td bgcolor="#333333"><div align="center"><span class="style1">-</span></div></td>
<td bgcolor="#333333"><div align="left"><span class="style1">You can slash all the time</span></div></td>
</tr>
<tr>
<th bgcolor="#333333" scope="row"><span class="style1">Silient Footsteps (CT)</span></th>
<td bgcolor="#333333"><div align="center"><span class="style1">-</span></div></td>
<td bgcolor="#333333"><div align="center"><span class="style1">1</span></div></td>
<td bgcolor="#333333"><div align="center"><span class="style1">-</span></div></td>
<td bgcolor="#333333"><span class="style1">No step sound for CT</span></td>
</tr>
<tr>
<th bgcolor="#333333" scope="row"><span class="style1">Anti Flash (CT)</span></th>
<td bgcolor="#333333"><div align="center"><span class="style1">-</span></div></td>
<td bgcolor="#333333"><div align="center"><span class="style1">1</span></div></td>
<td bgcolor="#333333"><div align="center"><span class="style1">-</span></div></td>
<td bgcolor="#333333"><span class="style1">You cant get flashed</span></td>
</tr>
<tr>
<th bgcolor="#333333" scope="row"><span class="style1">Anti Frost (CT)</span></th>
<td bgcolor="#333333"><div align="center"><span class="style1">-</span></div></td>
<td bgcolor="#333333"><div align="center"><span class="style1">1</span></div></td>
<td bgcolor="#333333"><div align="center"><span class="style1">-</span></div></td>
<td bgcolor="#333333"><span class="style1">You cant get frosted</span></td>
</tr>
</table>
<tr>
<p><span class="style4">Weapon Menu</span><br>
</p>
<table width="47%" height="177" border="5" bgcolor="#000000">
<tr>
<th bgcolor="#000000" scope="col"><span class="style1">Name</span></th>
<th bgcolor="#000000" scope="col"><span class="style1">Bullets</span></th>
<th bgcolor="#000000" scope="col"><span class="style1">Max Level</span></th>
<th bgcolor="#000000" scope="col"><span class="style1">Max</span></th>
<th bgcolor="#000000" scope="col"><span class="style1">Info</span></th>
</tr>
<th bgcolor="#333333" scope="row"><span class="style1">Five Seven Chance</span></th>
<td bgcolor="#333333"><div align="center"><span class="style1">10%</span></div></td>
<td bgcolor="#333333"><div align="center"><span class="style1">5</span></div></td>
<td bgcolor="#333333"><div align="center"><span class="style1">50%</span></div></td>
<td bgcolor="#333333"><span class="style1">Five-Seven Chance</span></td>
</tr>
<tr>
<th bgcolor="#333333" scope="row"><span class="style1">Five Seven Bullets</span></th>
<td bgcolor="#333333"><div align="center"><span class="style1">1</span></div></td>
<td bgcolor="#333333"><div align="center"><span class="style1">2</span></div></td>
<td bgcolor="#333333"><div align="center" class="style1">3</div></td>
<td bgcolor="#333333"><span class="style1">Extra Five-Seven Bullet</span></td>
</tr>
<tr>
<th bgcolor="#333333" scope="row"><span class="style1">Deagle Chance</span></th>
<td bgcolor="#333333"><div align="center"><span class="style1">10%</span></div></td>
<td bgcolor="#333333"><div align="center"><span class="style1">5</span></div></td>
<td bgcolor="#333333"><div align="center" class="style1">50%</div></td>
<td bgcolor="#333333"><span class="style1">Deagle Chance</span></td>
</tr>
<tr>
<th bgcolor="#333333" scope="row"><span class="style1">Deagle Bullets</span></th>
<td bgcolor="#333333"><div align="center" class="style1">1</div></td>
<td bgcolor="#333333"><div align="center" class="style1">2</div></td>
<td bgcolor="#333333"><div align="center" class="style1">3</div></td>
<td bgcolor="#333333"><span class="style1">Extra Deagle Bullet</span></td>
</tr>
<tr>
<th bgcolor="#333333" scope="row"><span class="style1">Awp Chance</span></th>
<td bgcolor="#333333"><div align="center"><span class="style1">5%</span></div></td>
<td bgcolor="#333333"><div align="center" class="style1">4</div></td>
<td bgcolor="#333333"><div align="center"><span class="style1">20</span></div></td>
<td bgcolor="#333333"><span class="style1">Awp Chance</span></td>
</tr>
<tr>
<th bgcolor="#333333" scope="row"><span class="style1">Awp Bullet</span></th>
<td bgcolor="#333333"><div align="center" class="style1">1</div></td>
<td bgcolor="#333333"><div align="center" class="style1">1</div></td>
<td bgcolor="#333333"><div align="center" class="style1">1</div></td>
<td bgcolor="#333333"><span class="style1">Extra Awp Bullet</span></td>
</tr>
</table>
<br>
<a href="../../xampp/htdocs/www.second-gaming.se">Second-Gaming.se</a>
</div>
</body>
</html>
Here is the motd parts in my source code:
PHP Code:
new gszMotd[3500];
public plugin_init() {
new dir[23], szFileName[64];
new szLine[128];
get_configsdir(dir, 22);
formatex(szFileName, 63, "%s/pointmod_motd.txt", dir);
//open help file for reading
new f = fopen(szFileName, "rt");
//iterate through all the lines in the file
while (!feof(f))
{
fgets(f, szLine, 128);
add(gszMotd, 3499, szLine);
}
//close file
fclose(f);
}
//Here's the code where I show the motd, located in a menu handler.
case 1: {
show_motd(id, gszMotd, "HNS Point Mod v1.0");
menu_display(id, iMenu, 0);
return PLUGIN_HANDLED;
}
I'd really appreciate any help I could get.
EDIT: Thanks xPaw for helping me.
Thanks
-zacky
|