mysql -
hichemp3 - 31.07.2016
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
Re: mysql -
shourya12 - 31.07.2016
firstly u need a mysql db.
then you have to connect it to the script using username, pwd and address
Re: mysql -
darkhunter332 - 31.07.2016
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
Re: mysql -
hichemp3 - 31.07.2016
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
Re: mysql -
hichemp3 - 31.07.2016
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);
}
Re: mysql -
shourya12 - 31.07.2016
change Host, user, dbname and password.
is it that hard? u should probably start with basic script with dini
Re: mysql -
hichemp3 - 31.07.2016
ITS CALIFORNIA GAMEMODE its not my i didnt understand eny thing in this database...