David1023 Posted May 9, 2022 Posted May 9, 2022 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..
Trippie Posted August 27, 2022 Posted August 27, 2022 (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 August 27, 2022 by Trippie
Ninja 2.0 Posted October 2, 2022 Posted October 2, 2022 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now