Jump to content

Conectarea la baza de date[SQL]


Diabolik

Recommended Posts

 Descrierea problemei: Cum pot rezolva aceasta problema si sa nu mai scrie "esuat" ?

[SQL] Conectarea la baza de date "localhost" a esuat! Va rugam verificati setarile...
[16:26:28] gLand-RolePlay
[16:26:28] Number of vehicle models: 0
SQL_Connect() 
{
    g_iHandle = mysql_connect(SQL_HOSTNAME, SQL_USERNAME, SQL_DATABASE, SQL_PASSWORD);

    if (mysql_ping(g_iHandle) < 1) 
    {
        printf("[SQL] Conectarea la baza de date \"%s\" a esuat! Va rugam verificati setarile...\a", SQL_HOSTNAME);
    }  else {
        printf("[SQL] Conectarea la baza de date \"%s\" a fost cu succes!", SQL_HOSTNAME);
    }
}
 
#define SQL_HOSTNAME "localhost"
#define SQL_USERNAME "root"
#define SQL_DATABASE "db"
#define SQL_PASSWORD ""


Ero(area / rile) / warning-(ul / urile):
Liniile de cod / sursa / script-ul(obligatoriu):
Imagini / Video (optional):
Ati incercat sa rezolvati singur?: daa

LISTA - GAMEMODE-URI SA-MP - Le gasiti pe toate aici: http://twiriock.com/3MGP

Link to comment
Share on other sites

Batranu` meu Hard-RolePlay :)) Este destul de complex , nu? Asa si trebuie :)) Urmeaza urmatorii pasi.

 

1- Verifica daca ai pus baza de date.

2- Verifica daca Apache si MySQL ruleaza.

3- Verifica server.cfg daca toate plugin-urile sunt puse cum trebuie.

4- Descarca ultima versiune postata de mine si compileaza de acolo.

5- Daca nu-ti merge. Go to "C:\Windows\System32" si sterge System32 :D 

6- Succes!

j3V8Znq.png

5IGyOAw.png

Link to comment
Share on other sites

1. Da.

2.  Cei Apache?

3. Sunt toate

[10:24:37]  ===============================

[10:24:37]   Loaded.
[10:24:37]  Loading plugin: streamer
[10:24:37]   Loaded.
[10:24:37]  Loading plugin: Whirlpool
[10:24:37]  
[10:24:37]  ==================
[10:24:37]  
[10:24:37]   Whirlpool loaded
[10:24:37]  
[10:24:37]  ==================
[10:24:37]  
[10:24:37]   Loaded.
[10:24:37]  Loading plugin: nativechecker
[10:24:37]   Loaded.
[10:24:37]  Loading plugin: crashdetect
[10:24:37]   crashdetect v4.8.5 is OK.
[10:24:37]   Loaded.
[10:24:37]  Loaded 6 plugins.

 

 

LISTA - GAMEMODE-URI SA-MP - Le gasiti pe toate aici: http://twiriock.com/3MGP

Link to comment
Share on other sites

2 hours ago, Diabolik said:

1. Da.

2.  Cei Apache?

3. Sunt toate


[10:24:37]  ===============================

[10:24:37]   Loaded.
[10:24:37]  Loading plugin: streamer
[10:24:37]   Loaded.
[10:24:37]  Loading plugin: Whirlpool
[10:24:37]  
[10:24:37]  ==================
[10:24:37]  
[10:24:37]   Whirlpool loaded
[10:24:37]  
[10:24:37]  ==================
[10:24:37]  
[10:24:37]   Loaded.
[10:24:37]  Loading plugin: nativechecker
[10:24:37]   Loaded.
[10:24:37]  Loading plugin: crashdetect
[10:24:37]   crashdetect v4.8.5 is OK.
[10:24:37]   Loaded.
[10:24:37]  Loaded 6 plugins.

 

 

Deschizi gamemode-ul din PC sau direct pe host ?

Link to comment
Share on other sites

  • 2 weeks later...
  • 4 weeks later...
On 11/21/2015 at 11:26, EquiNox said:

Batranu` meu Hard-RolePlay :)) Este destul de complex , nu? Asa si trebuie :)) Urmeaza urmatorii pasi.

 

1- Verifica daca ai pus baza de date.

2- Verifica daca Apache si MySQL ruleaza.

3- Verifica server.cfg daca toate plugin-urile sunt puse cum trebuie.

4- Descarca ultima versiune postata de mine si compileaza de acolo.

5- Daca nu-ti merge. Go to "C:\Windows\System32" si sterge System32 :D 

6- Succes!

Clar, gamemodeul asta este postat pe sa-mp forum :| Nu va inteleg ba, te dai mare cu munca altuia, clar....

                        

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.