Jump to content

O eroare....

Recommended Posts

Salut am o problema cu un server de samp pe local host .Mie nu imi merge deloc sa ma conectez cu baza de date. Cea mai recenta eroare este asta [Script[gamemodes/Chars.amx]: Run time error 19: "File or function is not found"] sunt nou in domeniu si am zis sa incerc alt gamemode sa vad daca merge si tot nu imi merge.Si am ales un gamemode de pe youtube si tot nu merge..

Link to comment
Share on other sites

  • 3 months later...

Salut. Mergi in callback-ul OnGameModeInit() si cauta linia mysql_connect. Dupa accea, completeaza functia cu parametrii necesari

mysql_connect(const host[], const username[], const database[], const password[]) - pentru Mysql < r40

Pentru mysql r40+ este 

    mysql_connect(const host[], const user[], const password[], const database[], MySQLOpt:option_id = MySQLOpt:0)

Pentru localhost trebuie sa scrii asa: SQL = mysql_connect("localhost", "root", "numele bazei de date", "");

Verifica de asemenea si in server.cfg daca ai mysql.dll trecut pe linia plugins si in gamemode daca ai #include <a_mysql>

Edited by Trippie
Link to comment
Share on other sites

  • 1 month later...

Join the conversation

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

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.