#1

Hi all i have a problem i dont know to to conect mysql date base and i didnt understand eny thig from tuto i need someone helpme i will add hem in host account to work in i use california gamemode , ty
Reply
#2

firstly u need a mysql db.

then you have to connect it to the script using username, pwd and address
Reply
#3

It's pretty much simple,
You probably have a mysql host,
First thing get the file xxx.sql, Just find a file called .sql in the end and then import it into the mysql database,

After you're done, Go to your gamemode and look for the connection where you put your mysql details,
Such as password, User name, Database, Etc.

https://sampwiki.blast.hk/wiki/MySQL#mysql_connect
Reply
#4

rellay i tryed to do all that before but i didnt understand eny thing about that i can add someone with add someone in my host account thene he can do every thing
Reply
#5

this what i found in gamemode
public OnGameModeInit()
{
mysql_log(LOG_ERROR | LOG_WARNING, LOG_TYPE_HTML);
if(fexist("LOCALHOST"))
{
koneksi = mysql_connect(HOST, USER, DBNAME, PASSWORD);
// forum = mysql_connect(HOST, USER, FORUMDB, PASSWORD);
}
else
{
koneksi = mysql_connect(HOST2, USER2, DBNAME2, PASSWORD2);
// forum = mysql_connect(HOST2, USER2, FORUMDB, PASSWORD2);
}
Reply
#6

change Host, user, dbname and password.

is it that hard? u should probably start with basic script with dini
Reply
#7

ITS CALIFORNIA GAMEMODE its not my i didnt understand eny thing in this database...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)