Jump to content

Recommended Posts

Posted

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

  • 3 months later...
Posted (edited)

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
  • 1 month later...
Posted

Din acea erroare rezulta ca nu iti gaseste gamemode-ul verifica ca in server.cfg la linia gamemode0 sa fie trecut fix cum este denumit gamemode-ul respectiv in folderul gamemodes si compileaza gamemode-ul.

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.