Quote:
Originally Posted by fysiks
He is searching in the Off Topic section of the forums. The website that you are using is for searching for approved plugins and not for solving issues.
I clicked on 8088's link and found the third link to be helpful and 8088's first post explains how to get scrolling.
Hint: Remove the doctype declaration on any page that you want to scroll in the MOTD.
|
Thanks, though this again seems to do with motd.txt files. I'm not sure if this doctype thingy (I know nothing of coding), has anything to do with being able to see different pages of my website.
Quote:
Originally Posted by xakintosh
It's easy to connect plugin with website.
You can add information to your web-database from the server. Also if you using sockets you can get information and etc.
I hope i help to you.
This is pretty simple code that i wrote but it's effective.
Code:
#define CREATE_DB "CREATE IT NOT EXIST `etc`..."
#define szHost "127.0.0.1"
#define szUser "root"
#define szPass "pass"
#define szDb "test"
Code:
// ********************************************* ********************************************* *******
// #### #### ###### #### ## ## ###### ## ## ######
// ## ## ## ## ## ## ## # ### ## ## ## ## ##
// ## ### ## ###### ## # ### ###### ### ##
// ## ## ## ## #### ## ## ## ## ## ######
// ********************************************* ********************************************* *******
// This plugin is made by MAD.XayC
// Date: 2011.16.01
// ********************************************* ********************************************* *******
#include <amxmodx>
#include <sqlx>
// ============================================= ============================================= =======
#define CREATE_DB ""
#define szHost "127.0.0.1"
#define szUser "root"
#define szPass "pass"
#define szDb "test"
// =========================
new const Version[] = "1.0"
// =========================
new Handle:SqlConnection
// ============================================= ============================================= =======
public plugin_init() {
register_plugin("MySQL Integration",Version,"MAD.XayC")
}
// ============================================= ============================================= =======
public plugin_cfg() {
SqlConnection = SQL_MakeDbTuple(szHost,szUser,szPass,szDb)
new QueryCache[1024]
formatex(QueryCache,1023,CREATE_DB)
SQL_ThreadQuery(SqlConnection,"QueryCreateTable",QueryCache)
}
// ============================================= ============================================= =======
public plugin_end() { SQL_FreeHandle(SqlConnection); }
// ============================================= ============================================= =======
public QueryCreateTable(iFailState,Handle:hQuery,szError[],iError,iData[],iDataSize,Float:flQueueTime) {
switch(iFailState) {
case TQUERY_CONNECT_FAILED: { log_amx("Failed to connect to database (%i): %s", iError, szError); }
case TQUERY_QUERY_FAILED: { log_amx("Error on query for QueryCreateTable() (%i): %s", iError, szError); }
default: { /*successfully created tables*/ }
}
}
// ********************************************* ********************************************* *******
// #### #### ###### #### ## ## ###### ## ## ######
// ## ## ## ## ## ## ## # ### ## ## ## ## ##
// ## ### ## ###### ## # ### ###### ### ##
// ## ## ## ## #### ## ## ## ## ## ######
// ********************************************* ********************************************* *******
|
0.0 ????????????
Thanks for your kindheartedness, I'm just not knowledgeable in these things to even understand what it was that you gave me.
__________________