26.11.2011, 14:42
Код:
This in script .. #define mysql_host GetHost ( ) //the IP of the host, should be displayed when created a database #define mysql_user GetUser ( ) //database username #define mysql_password GetPassword ( ) //database password #define mysql_database GetDataBase ( ) //database name
Like
Example:
Код:
GetHost ( ) { new str25 [ 128 ] ; str25 = "host/ip" ; return str25 ; } GetUser ( ) { new str26 [ 128 ] ; str26 = "username" ; return str26 ; } GetPassword ( ) { new str27 [ 128 ] ; str27 = "password" ; return str27 ; } GetDataBase ( ) { new str28 [ 128 ] ; str28 = "nameofdatabase" ; return str28 ; } Make one include ..with this and add #include <yourincludename> into your script..