AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   HTML (https://forums.alliedmods.net/showthread.php?t=205228)

ironskillz1 01-08-2013 09:42

HTML
 
I need help with html code
here is my html code:
Code:

public CmdPlayerInfo(id) {
new iMenu = menu_create("\d[Achievements]\y Hide 'N' Seek^n\rBy SnusMumrikeN\y", "handlePlayerMenu");
new iPlayers[32], iNum, iPlayer, szName[32], szKey[4];
get_players(iPlayers, iNum);
new szMenuKey[128];
for( new i; i < iNum; i++ )
    {
        iPlayer = iPlayers[i];
 new percent = 100 * iAchLevel[id][i]/iAchPoints[i]
        get_user_name(iPlayer, szName, charsmax(szName));
        format(szMenuKey,127,"\r%s \d[%d%%] ^n\w",szName,percent);
        num_to_str(iPlayer, szKey, charsmax(szKey));
        menu_additem(iMenu, szMenuKey, szKey);
    } 
menu_setprop(iMenu, MPROP_EXITNAME, "Exit");
menu_display(id, iMenu, 0);
}
public handlePlayerMenu(id, iMenu, iItem)
{
if( iItem == MENU_EXIT )
{
 menu_destroy(iMenu);
 return PLUGIN_HANDLED;
}
new szData[6], iAccess, iCallback;
menu_item_getinfo(iMenu, iItem, iAccess, szData, charsmax(szData), _, _, iCallback);
new i = str_to_num(szData);
new szAuth[35], szName[32];
get_user_authid(i, szAuth, charsmax(szAuth));
get_user_name(i, szName, charsmax(szName));
static szMotd[30000];
new iLen = formatex(szMotd, charsmax(szMotd), "<html>");
iLen = formatex(szMotd[iLen], charsmax(szMotd)-iLen,"<STYLE>body{background:#212121;color:#d1d1d1;font-family:Arial}table{width:100%%;font-size:11px}</STYLE><table cellpadding=1>");
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen, "<tr bgcolor=#333333><th width=5%%><align=left font color=white> Name <th width=10%%> Stats <th width=10%%> Percent <th width=10%%>");
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen, "<tr bgcolor=#333333><th width=5%%><align=left font color=white> Addicted! <th width=10%%> %i/%i <th width=10%%> %d <th width=10%%>", iAchLevel[i][CONNECT], iAchPoints[CONNECT], 100 * iAchLevel[id][CONNECT] / iAchPoints[CONNECT]);
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen, "<tr bgcolor=#333333><th width=5%%><align=left font color=white> Headsplasher! <th width=10%%> %i/%i <th width=10%%> %d <th width=10%%>", iAchLevel[i][HEADSHOT], iAchPoints[HEADSHOT], 100 * iAchLevel[id][HEADSHOT] / iAchPoints[HEADSHOT]);
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen, "<tr bgcolor=#333333><th width=5%%><align=left font color=white> HE Killer! <th width=10%%> %i/%i <th width=10%%> %d <th width=10%%>", iAchLevel[i][GRENADE], iAchPoints[GRENADE], 100 * iAchLevel[id][GRENADE] / iAchPoints[GRENADE]);
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen, "<tr bgcolor=#333333><th width=5%%><align=left font color=white> Bunnyhopper! <th width=10%%> %i/%i <th width=10%%> %d <th width=10%%>", iAchLevel[i][JUMP], iAchPoints[JUMP], 100 * iAchLevel[id][JUMP] / iAchPoints[JUMP]);
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen, "<tr bgcolor=#333333><th width=5%%><align=left font color=white> Pro Bunnyhopper! <th width=10%%> %i/%i <th width=10%%> %d <th width=10%%>", iAchLevel[i][JUMP], iAchPoints[JUMPER], 100 * iAchLevel[id][JUMP] / iAchPoints[JUMPER]);
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen, "<tr bgcolor=#333333><th width=5%%><align=left font color=white> Master Bunnyhopper! <th width=10%%> %i/%i <th width=10%%> %d <th width=10%%>", iAchLevel[i][JUMP], iAchPoints[JUMPISH], 100 * iAchLevel[id][JUMP] / iAchPoints[JUMPISH]);
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen, "<tr bgcolor=#333333><th width=5%%><align=left font color=white> Terroist Surviver! <th width=10%%> %i/%i <th width=10%%> %d <th width=10%%>", iAchLevel[i][SURVIVE], iAchPoints[SURVIVE], 100 * iAchLevel[id][SURVIVE] / iAchPoints[SURVIVE]);
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen, "<tr bgcolor=#333333><th width=5%%><align=left font color=white> Knifer! <th width=10%%> %i/%i <th width=10%%> %d <th width=10%%>", iAchLevel[i][KNIFE], iAchPoints[KNIFE], 100 * iAchLevel[id][KNIFE] / iAchPoints[KNIFE]);
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen, "<tr bgcolor=#333333><th width=5%%><align=left font color=white> Semi Knifer! <th width=10%%> %i/%i <th width=10%%> %d <th width=10%%>", iAchLevel[i][SEMI], iAchPoints[SEMI], 100 * iAchLevel[id][SEMI] / iAchPoints[SEMI]);
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen, "<tr bgcolor=#333333><th width=5%%><align=left font color=white> Pro Knifer! <th width=10%%> %i/%i <th width=10%%> %d <th width=10%%>", iAchLevel[i][PRO], iAchPoints[PRO], 100 * iAchLevel[id][PRO] / iAchPoints[PRO]);
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen, "<tr bgcolor=#333333><th width=5%%><align=left font color=white> AWP Master! <th width=10%%> %i/%i <th width=10%%> %d <th width=10%%>", iAchLevel[i][AWP], iAchPoints[AWP], 100 * iAchLevel[id][AWP] / iAchPoints[AWP]);
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen, "<tr bgcolor=#333333><th width=5%%><align=left font color=white> Deagle Master! <th width=10%%> %i/%i <th width=10%%> %d <th width=10%%>", iAchLevel[i][DEAGLE], iAchPoints[DEAGLE], 100 * iAchLevel[id][DEAGLE] / iAchPoints[DEAGLE]);
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen, "<tr bgcolor=#333333><th width=5%%><align=left font color=white> Fiveseven Master! <th width=10%%> %i/%i <th width=10%%> %d <th width=10%%>", iAchLevel[i][FIVE], iAchPoints[FIVE], 100 * iAchLevel[id][FIVE] / iAchPoints[FIVE]);
iLen += formatex(szMotd[iLen], charsmax(szMotd) - iLen, "</p>");
iLen += formatex(szMotd[iLen], charsmax(szMotd) - iLen, "</body>");
iLen += formatex(szMotd[iLen], charsmax(szMotd) - iLen, "</html>");
show_motd(id,szMotd, "Achievement Player Info");
CmdPlayerInfo(id);
menu_destroy(iMenu);
return PLUGIN_HANDLED;
}

it looks like this ingame
it doesnt show evrything
it stops on pro knifer
http://i.imgur.com/QBK96.png

ironskillz1 01-08-2013 09:45

Re: HTML
 
and how can i make the text bigger? so it looks better
sorry i couldnt edit the other

alonelive 01-08-2013 10:56

Re: HTML
 
1. MOTD has limit of max allowed chars..
2. <font size="16px">asdf</font>

ironskillz1 01-08-2013 11:24

Re: HTML
 
yeah the max is 1546
and i dont think this is 1546

AngeIII 01-08-2013 11:43

Re: HTML
 
do not post all time. use EDIT

new MOTD_header[] = "<html><head><LINK REL=^"StyleSheet^" HREF=^"your.css^" TYPE=^"text/css^"></head><body>";

use css to format style outside the code.. and no need to repeat: <tr bgcolor=#333333><th width=5%%><align=left font color=white>

just once in css file..:
tr,th,td
{
background:#333333;
width:5%;
text-align:left;
color:white;
}
also
precache_generic( "your.css" );


see example on war3ft source code for motd.

ironskillz1 01-08-2013 12:11

Re: HTML
 
Like this

But where should i put the your.css file?
and it still doesnt show evrything ingame

Code:

public plugin_precache() {
 precache_sound(szAchievementSound)
 precache_generic( "your.css" );
}


Code:

//static szMotd[30000];
new szMotd[] = "<html><head><LINK REL=^"StyleSheet^" HREF=^"your.css^" TYPE=^"text/css^"></head><body>";
new iLen = formatex(szMotd, charsmax(szMotd), "<html>");
iLen = formatex(szMotd[iLen], charsmax(szMotd)-iLen,"<STYLE>body{background:#212121;color:#d1d1d1;font-family:Arial}table{width:100%%;font-size:11px}</STYLE><table cellpadding=1>");
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen, "Name    <th width=10%%> Stats <th width=10%%> Percent <th width=10%%>");
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen, "Addicted! <th width=10%%> %i/%i <th width=10%%> %d <th width=10%%>", iAchLevel[i][CONNECT], iAchPoints[CONNECT], 100 * iAchLevel[id][CONNECT] / iAchPoints[CONNECT]);
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen, "Headsplasher! <th width=10%%> %i/%i <th width=10%%> %d <th width=10%%>", iAchLevel[i][HEADSHOT], iAchPoints[HEADSHOT], 100 * iAchLevel[id][HEADSHOT] / iAchPoints[HEADSHOT]);
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen, "HE Killer! <th width=10%%> %i/%i <th width=10%%> %d <th width=10%%>", iAchLevel[i][GRENADE], iAchPoints[GRENADE], 100 * iAchLevel[id][GRENADE] / iAchPoints[GRENADE]);
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen, "Bunnyhopper! <th width=10%%> %i/%i <th width=10%%> %d <th width=10%%>", iAchLevel[i][JUMP], iAchPoints[JUMP], 100 * iAchLevel[id][JUMP] / iAchPoints[JUMP]);
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen, "Pro Bunnyhopper! <th width=10%%> %i/%i <th width=10%%> %d <th width=10%%>", iAchLevel[i][JUMP], iAchPoints[JUMPER], 100 * iAchLevel[id][JUMP] / iAchPoints[JUMPER]);
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen, "Master Bunnyhopper! <th width=10%%> %i/%i <th width=10%%> %d <th width=10%%>", iAchLevel[i][JUMP], iAchPoints[JUMPISH], 100 * iAchLevel[id][JUMP] / iAchPoints[JUMPISH]);
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen, "Terroist Surviver! <th width=10%%> %i/%i <th width=10%%> %d <th width=10%%>", iAchLevel[i][SURVIVE], iAchPoints[SURVIVE], 100 * iAchLevel[id][SURVIVE] / iAchPoints[SURVIVE]);
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen, "Knifer! <th width=10%%> %i/%i <th width=10%%> %d <th width=10%%>", iAchLevel[i][KNIFE], iAchPoints[KNIFE], 100 * iAchLevel[id][KNIFE] / iAchPoints[KNIFE]);
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen, "Semi Knifer! <th width=10%%> %i/%i <th width=10%%> %d <th width=10%%>", iAchLevel[i][SEMI], iAchPoints[SEMI], 100 * iAchLevel[id][SEMI] / iAchPoints[SEMI]);
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen, "Pro Knifer! <th width=10%%> %i/%i <th width=10%%> %d <th width=10%%>", iAchLevel[i][PRO], iAchPoints[PRO], 100 * iAchLevel[id][PRO] / iAchPoints[PRO]);
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen, "AWP Master! <th width=10%%> %i/%i <th width=10%%> %d <th width=10%%>", iAchLevel[i][AWP], iAchPoints[AWP], 100 * iAchLevel[id][AWP] / iAchPoints[AWP]);
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen, "Deagle Master! <th width=10%%> %i/%i <th width=10%%> %d <th width=10%%>", iAchLevel[i][DEAGLE], iAchPoints[DEAGLE], 100 * iAchLevel[id][DEAGLE] / iAchPoints[DEAGLE]);
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen, "Fiveseven Master! <th width=10%%> %i/%i <th width=10%%> %d <th width=10%%>", iAchLevel[i][FIVE], iAchPoints[FIVE], 100 * iAchLevel[id][FIVE] / iAchPoints[FIVE]);
iLen += formatex(szMotd[iLen], charsmax(szMotd) - iLen, "</p>");
iLen += formatex(szMotd[iLen], charsmax(szMotd) - iLen, "</body>");
iLen += formatex(szMotd[iLen], charsmax(szMotd) - iLen, "</html>");
show_motd(id,szMotd, "Achievements");
CmdPlayerInfo(id);
menu_destroy(iMenu);
return PLUGIN_HANDLED;
}


AngeIII 01-08-2013 13:03

Re: HTML
 
otd)-iLen, "Name
<tr> should be before name.. and that for each row

and use simple tagd for table

<table>
<tr><td> Row1 Colm1</td><td> Row1 Colm2</td><td> Row1 Colm3</td></tr>
<tr><td> Row2 Colm1</td><td> Row2 Colm2</td><td> Row2 Colm3</td></tr>
<tr><td> Row3 Colm1</td><td> Row3 Colm2</td><td> Row3 Colm3</td></tr>
...
</table>

<html>
css
<body>
<table>
your code
</table>
</body>
</html>
but yes. something like this.
css file should be in /cstrike/ folder.

ironskillz1 01-08-2013 13:38

Re: HTML
 
My your.css looks like this
Code:

tr,th,td
 {
 background:#333333;
 width:5%;
 text-align:left;
 color:white;
}
<body>
<table>

and my code look like this
Code:

//static szMotd[30000];
new szMotd[] = "<html><head><LINK REL=^"StyleSheet^" HREF=^"your.css^" TYPE=^"text/css^"></head><body>";
new iLen = formatex(szMotd, charsmax(szMotd), "<table>");
iLen = formatex(szMotd[iLen], charsmax(szMotd)-iLen,"<STYLE>body{background:#212121;color:#d1d1d1;font-family:Arial}table{width:100%%;font-size:11px}</STYLE><table cellpadding=1>");
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen, "<tr><td>Name    </td><td> Stats </td><td> Percent </td><td>");
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen, "<tr><td>Addicted! </td><td> %i/%i </td><td> %d </td><td>", iAchLevel[i][CONNECT], iAchPoints[CONNECT], 100 * iAchLevel[id][CONNECT] / iAchPoints[CONNECT]);
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen, "<tr><td>Headsplasher! </td><td> %i/%i </td><td> %d </td><td>", iAchLevel[i][HEADSHOT], iAchPoints[HEADSHOT], 100 * iAchLevel[id][HEADSHOT] / iAchPoints[HEADSHOT]);
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen, "<tr><td>HE Killer! </td><td> %i/%i </td><td> %d </td><td>", iAchLevel[i][GRENADE], iAchPoints[GRENADE], 100 * iAchLevel[id][GRENADE] / iAchPoints[GRENADE]);
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen, "<tr><td>Bunnyhopper! </td><td> %i/%i </td><td> %d </td><td>", iAchLevel[i][JUMP], iAchPoints[JUMP], 100 * iAchLevel[id][JUMP] / iAchPoints[JUMP]);
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen, "<tr><td>Pro Bunnyhopper! </td><td> %i/%i </td><td> %d </td><td>", iAchLevel[i][JUMP], iAchPoints[JUMPER], 100 * iAchLevel[id][JUMP] / iAchPoints[JUMPER]);
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen, "<tr><td>Master Bunnyhopper! </td><td> %i/%i </td><td> %d </td><td>", iAchLevel[i][JUMP], iAchPoints[JUMPISH], 100 * iAchLevel[id][JUMP] / iAchPoints[JUMPISH]);
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen, "<tr><td>Terroist Surviver! </td><td> %i/%i </td><td> %d </td><td>", iAchLevel[i][SURVIVE], iAchPoints[SURVIVE], 100 * iAchLevel[id][SURVIVE] / iAchPoints[SURVIVE]);
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen, "<tr><td>Knifer! </td><td> %i/%i </td><td> %d </td><td>", iAchLevel[i][KNIFE], iAchPoints[KNIFE], 100 * iAchLevel[id][KNIFE] / iAchPoints[KNIFE]);
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen, "<tr><td>Semi Knifer! </td><td> %i/%i </td><td> %d </td><td>", iAchLevel[i][SEMI], iAchPoints[SEMI], 100 * iAchLevel[id][SEMI] / iAchPoints[SEMI]);
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen, "<tr><td>Pro Knifer! </td><td> %i/%i </td><td> %d </td><td>", iAchLevel[i][PRO], iAchPoints[PRO], 100 * iAchLevel[id][PRO] / iAchPoints[PRO]);
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen, "<tr><td>AWP Master! </td><td> %i/%i </td><td> %d </td><td>", iAchLevel[i][AWP], iAchPoints[AWP], 100 * iAchLevel[id][AWP] / iAchPoints[AWP]);
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen, "<tr><td>Deagle Master! </td><td> %i/%i </td><td> %d </td><td>", iAchLevel[i][DEAGLE], iAchPoints[DEAGLE], 100 * iAchLevel[id][DEAGLE] / iAchPoints[DEAGLE]);
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen, "<tr><td>Fiveseven Master! </td><td> %i/%i </td><td> %d </td><td>", iAchLevel[i][FIVE], iAchPoints[FIVE], 100 * iAchLevel[id][FIVE] / iAchPoints[FIVE]);
iLen += formatex(szMotd[iLen], charsmax(szMotd) - iLen, "</table>");
iLen += formatex(szMotd[iLen], charsmax(szMotd) - iLen, "</body>");
iLen += formatex(szMotd[iLen], charsmax(szMotd) - iLen, "</html>");
show_motd(id,szMotd, "Achievements");
CmdPlayerInfo(id);
menu_destroy(iMenu);
return PLUGIN_HANDLED;
}

it stills doesnt show evrything like in that photo i postet

AngeIII 01-08-2013 14:18

Re: HTML
 
Code:

body{background:#212121;color:#d1d1d1;font-family:Arial}
tr,th,td
 {
 background:#333333;
 width:5%;
 text-align:left;
 color:white;
}
table{width:100%%;font-size:11px}

PHP Code:

//static szMotd[30000];
new szMotd[] = "<html><head><LINK REL=^"StyleSheet^" HREF=^"your.css^" TYPE=^"text/css^"></head><body>";
new 
iLen formatex(szMotdcharsmax(szMotd), "<table cellpadding=1>");
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen"<tr><td>Name     </td><td> Stats </td><td> Percent </td></tr>");
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen"<tr><td>Addicted! </td><td> %i/%i </td><td> %d </td></tr>"iAchLevel[i][CONNECT], iAchPoints[CONNECT], 100 iAchLevel[id][CONNECT] / iAchPoints[CONNECT]);
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen"<tr><td>Headsplasher! </td><td> %i/%i </td><td> %d </td></tr>"iAchLevel[i][HEADSHOT], iAchPoints[HEADSHOT], 100 iAchLevel[id][HEADSHOT] / iAchPoints[HEADSHOT]);
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen"<tr><td>HE Killer! </td><td> %i/%i </td><td> %d </td></tr>"iAchLevel[i][GRENADE], iAchPoints[GRENADE], 100 iAchLevel[id][GRENADE] / iAchPoints[GRENADE]);
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen"<tr><td>Bunnyhopper! </td><td> %i/%i </td><td> %d </td></tr>"iAchLevel[i][JUMP], iAchPoints[JUMP], 100 iAchLevel[id][JUMP] / iAchPoints[JUMP]);
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen"<tr><td>Pro Bunnyhopper! </td><td> %i/%i </td><td> %d </td></tr>"iAchLevel[i][JUMP], iAchPoints[JUMPER], 100 iAchLevel[id][JUMP] / iAchPoints[JUMPER]);
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen"<tr><td>Master Bunnyhopper! </td><td> %i/%i </td><td> %d </td></tr>"iAchLevel[i][JUMP], iAchPoints[JUMPISH], 100 iAchLevel[id][JUMP] / iAchPoints[JUMPISH]);
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen"<tr><td>Terroist Surviver! </td><td> %i/%i </td><td> %d </td></tr>"iAchLevel[i][SURVIVE], iAchPoints[SURVIVE], 100 iAchLevel[id][SURVIVE] / iAchPoints[SURVIVE]);
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen"<tr><td>Knifer! </td><td> %i/%i </td><td> %d </td></tr>"iAchLevel[i][KNIFE], iAchPoints[KNIFE], 100 iAchLevel[id][KNIFE] / iAchPoints[KNIFE]);
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen"<tr><td>Semi Knifer! </td><td> %i/%i </td><td> %d </td></tr>"iAchLevel[i][SEMI], iAchPoints[SEMI], 100 iAchLevel[id][SEMI] / iAchPoints[SEMI]);
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen"<tr><td>Pro Knifer! </td><td> %i/%i </td><td> %d </td></tr>"iAchLevel[i][PRO], iAchPoints[PRO], 100 iAchLevel[id][PRO] / iAchPoints[PRO]);
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen"<tr><td>AWP Master! </td><td> %i/%i </td><td> %d </td></tr>"iAchLevel[i][AWP], iAchPoints[AWP], 100 iAchLevel[id][AWP] / iAchPoints[AWP]);
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen"<tr><td>Deagle Master! </td><td> %i/%i </td><td> %d </td></tr>"iAchLevel[i][DEAGLE], iAchPoints[DEAGLE], 100 iAchLevel[id][DEAGLE] / iAchPoints[DEAGLE]);
iLen += formatex(szMotd[iLen], charsmax(szMotd)-iLen"<tr><td>Fiveseven Master! </td><td> %i/%i </td><td> %d </td></tr>"iAchLevel[i][FIVE], iAchPoints[FIVE], 100 iAchLevel[id][FIVE] / iAchPoints[FIVE]);
iLen += formatex(szMotd[iLen], charsmax(szMotd) - iLen"</table>");
iLen += formatex(szMotd[iLen], charsmax(szMotd) - iLen"</body>");
iLen += formatex(szMotd[iLen], charsmax(szMotd) - iLen"</html>");
show_motd(id,szMotd"Achievements");
CmdPlayerInfo(id);
menu_destroy(iMenu);
return 
PLUGIN_HANDLED;



ironskillz1 01-08-2013 14:24

Re: HTML
 
Not working it look like this when i open the motd
Code:

</t
Name Stats Percent



All times are GMT -4. The time now is 13:46.

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