Jump to content
  • 0

Help urgent!


Arsalan

Question

5 answers to this question

Recommended Posts

  • 0

ENG : You did not make a good connection with the database server.

RO: Nu ai facut bine conectarea serverului cu baza de date.

 

vldgIri.png

YouTube : Click Redirect Channel

Discord : Arabu#9330

Canal Discord : Click To Join

Facebook : Click Facebook

Instagram : Click Instagram

Skype : Mita.Official

Respectă și vei fi respectat !

Link to comment
Share on other sites

  • 0
2 hours ago, Marlboro said:

ENG : You did not make a good connection with the database server.

RO: Nu ai facut bine conectarea serverului cu baza de date.

Well, im new in scripting if you can explain me then it'd be a pleasure. just help me get out of this problem.

Link to comment
Share on other sites

  • 0
Acum 51 minute, Arsalan a spus:

Well, im new in scripting if you can explain me then it'd be a pleasure. just help me get out of this problem.

Enter the database login data in the GM source (... pwn) found in samp03 / gamemodes

The GM source (this has the .pwn extension) opens with pawno.exe and looks for:

#define SQL_HOST "localhost" // MySQL data
#define SQL_USER "root"
#define SQL_PASS ""
#define SQL_DB "GangWar"

Complete data from the database

#define SQL_HOST --- ip webhost
#defines SQL_USER --- user with which you connect to the web database
#defines SQL_PASS --- the user password assigned to the database
#define SQL_DB - database name

Example of completion:

#define SQL_HOST "178.157.85.25" // MySQL data
#define SQL_USER "samp_admin"
#define SQL_PASS "7nucoyubg"
#define SQL_DB "samp_db"
#define SCRIPT_VERSION "v0.3"

Note: In some servers (SAMP, MTA), access to the database may take a form other than the ones listed above. For example, it can take the form of a command line:

SQL = mysql_connect ("127.0.0.1", "root", "zV_hid9833", "");

Access data is replaced with those I created in cPanel:

SQL = mysql_connect ("5.83.43.25", "user_admin", "user_db", "password123");

After completing, compile.

If we already had a GM (it has the extension ... amx) then we will be asked if we want to replace it, we select yes.

It is best to delete it before compilation, however we do not have anything to do with it because it includes data from another database.

After compilation in the gamemodes folder, the compiled GM will appear.

 

vldgIri.png

YouTube : Click Redirect Channel

Discord : Arabu#9330

Canal Discord : Click To Join

Facebook : Click Facebook

Instagram : Click Instagram

Skype : Mita.Official

Respectă și vei fi respectat !

Link to comment
Share on other sites

  • 0
16 hours ago, Marlboro said:

Enter the database login data in the GM source (... pwn) found in samp03 / gamemodes

The GM source (this has the .pwn extension) opens with pawno.exe and looks for:

#define SQL_HOST "localhost" // MySQL data
#define SQL_USER "root"
#define SQL_PASS ""
#define SQL_DB "GangWar"

Complete data from the database

#define SQL_HOST --- ip webhost
#defines SQL_USER --- user with which you connect to the web database
#defines SQL_PASS --- the user password assigned to the database
#define SQL_DB - database name

Example of completion:

#define SQL_HOST "178.157.85.25" // MySQL data
#define SQL_USER "samp_admin"
#define SQL_PASS "7nucoyubg"
#define SQL_DB "samp_db"
#define SCRIPT_VERSION "v0.3"

Note: In some servers (SAMP, MTA), access to the database may take a form other than the ones listed above. For example, it can take the form of a command line:

SQL = mysql_connect ("127.0.0.1", "root", "zV_hid9833", "");

Access data is replaced with those I created in cPanel:

SQL = mysql_connect ("5.83.43.25", "user_admin", "user_db", "password123");

After completing, compile.

If we already had a GM (it has the extension ... amx) then we will be asked if we want to replace it, we select yes.

It is best to delete it before compilation, however we do not have anything to do with it because it includes data from another database.

After compilation in the gamemodes folder, the compiled GM will appear.

Thanks, i will try it. btw i have added you on skype kindly accept me there.

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
Answer this question...

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