Raised This Month: $ Target: $400
 0% 

Looking for plugin that links to website


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Mikolas
Senior Member
Join Date: Aug 2006
Old 07-16-2011 , 03:51   Re: Looking for plugin that links to website
Reply With Quote #15

Quote:
Originally Posted by fysiks View Post
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 View Post
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.
__________________
Non coder's never get +Karma -_-
Mikolas is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:11.


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