Quote:
Originally Posted by zanyda12
Now without errors, but have some trouble -when we close menu we have this "Close the active menu first, please."
And now we have this
L 08/16/2013 - 20:01 3: [SM] Native "SetEntPropFloat" reported: Property "m_flDamage" not found (entity 734/rpg_missile)
L 08/16/2013 - 20:01 3: [SM] Displaying call stack trace for plugin "entcontrol.smx":
L 08/16/2013 - 20:01 3: [SM] [0] Line 135, weapons.sp: rojectile()
L 08/16/2013 - 20:01 3: [SM] [1] Line 25, FixedWeapons/rocket.sp::Fixed_Rocket_Fire()
|
Thank you for your freetime to show me the errors on your server. This will help me fixing the bugs
Just a note to the webserver-module:
The next release of entcontrol will have some webserver-module integrated into the extension.
It can be used by ANY plugin!
Any .sp-file using the forward
Code:
public LetsTalk(const String:arg[])
{
PrintToServer(arg);
}
public Action:OnWebserverCallFunction(const String:function[], const String:arg[], String:result[], maxresultlength)
{
//PrintToServer("OnWebserverCallFunction->Call to function %s(%s)\n", function, arg);
if (StrEqual(function, "LetsTalk"))
{
LetsTalk(arg);
strcopy(result, maxresultlength, "");
}
else if (StrEqual(function, "CreateHTMLTest"))
{
strcopy(result, maxresultlength, "<font color=\"0xffff66\">TEST</font>");
}
else if (StrEqual(function, "CreateHTMLTestTable"))
{
strcopy(result, maxresultlength, "<table border=\"1\"><tr><th>Berlin</th><th>Hamburg</th></tr><tr><td>Miljöh</td><td>Kiez</td></tr><tr><td>Buletten</td><td>Frikadellen</td></tr></table>");
}
else
{
return (Plugin_Handled);
}
return (Plugin_Changed);
}
Any HTML-File. /addons/sourcemod/configs/www/...
HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Entcontrol | ADMIN-PANEL</title>
</head>
<body>
<h1>Entcontrol Sample::Serverinfo</h1>
<p>MapName: ec::GetMapName()</p>
<p>IsLANServer: ec::IsLANServer()</p>
<p>GetInterfaceName: ec::GetInterfaceName()</p>
<p>ServerCommand: ec::ServerCommand(hostname asdf)</p>
<p>ServerCommand2: ec::LetsTalk(I am working!!!)</p>
<p>Just some unknown function: ec::BlaBlaBla()</p>
<p>Create HTML-Text dynamic with plugin(font-color): ec::CreateHTMLTest()</p>
<p>Create HTML-Text dynamic with plugin(table): ec::CreateHTMLTestTable()</p>
</body>
</html>
If you open this file either ingame or from outside, the result is:
Entcontrol Sample::Serverinfo
MapName: cs_assault
IsLANServer: false
GetInterfaceName: IGameHelpers
ServerCommand:
ServerCommand2:
Just some unknown function: Unknown function BlaBlaBla
Create HTML-Text dynamic with plugin(font-color):
TEST
Create HTML-Text dynamic with plugin(table):
BerlinHamburg MiljöhKiezBulettenFrikadellen
Table is not working on the forum ... no HTML allowed ^^
And of course "I am working!!!" is the printed result in the server-console and the hostname will be changed to "asdf"
__________________