AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   HTML MOTD displayed as Plain Text (https://forums.alliedmods.net/showthread.php?t=51461)

Shaman 02-18-2007 10:29

HTML MOTD displayed as Plain Text
 
I have this code:
PHP Code:

new helplenght=1000
new help[1001]
new 
len

len
=format(help,helplenght,                "<!DOCTYPE HTML PUBLIC ^"-//W3C//DTD HTML 4.01 Transitional//EN^" ^"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd^">")
len+=format(help[len],helplenght-len,    "<html>")
len+=format(help[len],helplenght-len,    "    <head>")
len+=format(help[len],helplenght-len,    "        <title>shDM:Heroes</title>")
len+=format(help[len],helplenght-len,    "    </head>")
len+=format(help[len],helplenght-len,    "    <body>")
len+=format(help[len],helplenght-len,    "        <h1>Welcome to shDM:Heroes!</h1>")
len+=format(help[len],helplenght-len,    "    </body>")
len+=format(help[len],helplenght-len,    "</html>")

show_motd(id,help,"shDM Help"

When I use this command I see the code not the HTML page. What's wrong???

Paladinrocker 02-18-2007 13:23

Re: HTML MOTD displayed as Plain Text
 
Not sure dude, try dropping the doctype html public deal, or just have your plugin load a .txt file with all the html already in it. That's what I did.

Code:

show_motd(id, "motd.txt", "shDM Help");
I think that's what I used to do.

XxAvalanchexX 02-18-2007 13:59

Re: HTML MOTD displayed as Plain Text
 
I believe the only mods that support HTML MoTDs and colored menus are Cstrike and DoD.


All times are GMT -4. The time now is 00:36.

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