Jump to content
  • 0

[PROBLEMA]Database


CozminKenny

Question

Salut, am luat gamemod-ul RulzGame care nu are nici un bug, dar singura problema e ca nu-si face conexiunea la baza de date, iar toate datele sunt puse corect. Am host-ul de la 0ping si sunt sigur ca am pus datele corect. Faza e cand am cautat "mysql_connect" scriptul era asa :

SQL = mysql_connect("(localhost", "root", "root", "");

Iar eu l-am editat asa : (Nu i-am pus datele pentru a nu le face publice)

SQL = mysql_connect("localhost", "root", "root", "");

Si va dau tot scriptul poate e vreo problema :


// ONGAMEMODEINIT
public OnGameModeInit()
{
	mysql_log(LOG_ERROR, LOG_TYPE_TEXT);
	SQL = mysql_connect("localhost", "root", "root", "");


	

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

SQL = mysql_connect(const host[], const user[], const database[], const password[]);

Numele bazei de dage tot root e ? :|

 

Pe windows sau pe linux nu se conecteaza?

 

windows: Ai xamp-ul pornit?

linux: arata server.cfg 

Nu mai deschideti in pu*a mea servere de SA:MP !

Jucati-va pe cele care sunt !   Sunt suficiente !

Reguli de bun simt:

1. Nu faceti reclama unde nu trebuie !

2. Nu injurati ca la usa cortului !

3. Daca esti analfabeti, taci din gura !

4. Nu abuza de 'scuze', 'din greseala' !

 

My work ::: http://pastebin.com/VRNRcaAs

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.