Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.