Не проявляется меню регистрации в моде

Добро пожаловать!

Зарегистрировавшись у нас, вы сможете обсуждать, делиться и отправлять личные сообщения другим участникам нашего сообщества.

Зарегистрироваться!
  • Если Вы желаете помогать развитию проекта, готовы заполнять раздел(-ы) и подсказывать другим пользователям на портале, есть возможность попасть в команду редакторов. Для этого следует обратиться в техническую поддержку
Пользователь
Регистрация
31 Июл 2024
Сообщения
48
MYSQL Подключил верно, бд тоже подключил, айпи тоже подключил.

вот коды


stock CreateMySQLConnection(host[], user[], db[], pass[])
{
connects = mysql_connect(host, user, db, pass);
if(mysql_errno()==0)
{
print("------- БД Youtube RP -----");
printf("Подключение к базе успешно!");
}
else
{
print("--------- БД Youtube RP -------");
printf("Подключиться к базе не удалось!");
}
mysql_function_query(connects,"SET NAMES cp1251",false,"","");
mysql_function_query(connects,"set character_set_client=\'cp1251\'",false,"","");
mysql_function_query(connects,"set character_set_results=\'cp1251\'",false,"","");
mysql_function_query(connects,"set collation_connection=\'cp1251_general_ci\'",false,"","");
mysql_function_query(connects, "UPDATE `accounts` SET `pHotvet` = '0', `pOnlineYes` = `day_online`, `day_online` = '0', `pAfkYes` = `pDayAfk`, `pDayAfk` = '0'", false, "", "");
mysql_function_query(connects, "UPDATE `bizz` SET `bProduct` = '100000'", false, "", "");
mysql_function_query(connects,"SELECT * FROM `"TABLE_BIZZ"`", true, "LoadBizz", "");
mysql_function_query(connects,"SELECT * FROM `"TABLE_HOUSE"`",true,"LoadProperty","");
mysql_tquery(connects,"SELECT * FROM `gzlogo`", "LoadGZLogo","");
mysql_function_query(connects,"SELECT * FROM `"TABLE_GANGZONE"`", true, "OnLoadGzCallback", "");
mysql_function_query(connects,"SELECT * FROM `"TABLE_OTHER"`", true, "OnLoadOtherCallback", "");
mysql_function_query(connects,"SELECT * FROM `"TABLE_MERIA"`", true, "OnLoadMeriaCallback", "");
mysql_function_query(connects,"SELECT * FROM `"TABLE_PICK"`", true, "LoadPick", "");
mysql_function_query(connects,"SELECT * FROM `"TABLE_GREENZONE"`", true, "LoadZone", "");
mysql_function_query(connects,"SELECT * FROM `family_system`", true, "family_loading", "" ) ;
mysql_function_query(connects, "SELECT * FROM `dropped_items` WHERE `storage_type` = '11'", true, "LoadPlantsCallBack", "");
mysql_function_query(connects, "DELETE FROM `dropped_items` WHERE `drop_time` < UNIX_TIMESTAMP()-5760 AND `storage_type` != '11'", false, "", "");
mysql_function_query(connects, "SELECT * FROM dropped_items WHERE `storage_type` != '11'", true, "LoadDItems", "");
mysql_function_query(connects,"SELECT * FROM `bank`", true, "TotalBankCeck", "" ) ;
mysql_tquery(connects,"SELECT * FROM `fraction_ranks`","OnFracRankLoad","");
mysql_tquery(connects,"SELECT * FROM `realtors`", "LoadRealtors", "");
mysql_function_query(connects, "SELECT * FROM `config`", true, "LoadConfig", "");
mysql_function_query(connects, "SELECT * FROM `hostnames`", true, "LoadNames", "");
mysql_function_query(connects, "SELECT * FROM `AntiCheat`", true, "LoadSettings", "");
return 1;
}

Вот код еще Server.cfg
87echo Executing Server Config...
lanmode 0
rcon_password
maxplayers 1000
hostname YOUTUBE RP | BETA TEST!
gamemode0 youtube
filterscripts
announce 1
bind 1*4.9*.2.22*
port 66**
query 1
weburl
maxnpc 0
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
plugins crashdetect.so streamer.so mysql_static.so pawncmd.so regex.so SKY.so sscanf.so mysql.so pawnbots.so pawnraknet.so

Вот файлы в Plugins

crashdetect.so
mysql.so
mysql_static.so
pawnbots.so
pawncmd.so
pawnraknet.cfg
pawnraknet.so
regex.so
SKY.so
sscanf.so
streamer.so

Вот код MYSQL

#define sqlhost "127.0.0.1" // Адрес хоста
#define sqluser "user4**28" // Имя пользователя
#define sqlpass "*SK**fL**dqE" // Пароль
#define sqldb "user4**28" // Имя Базы данных

Что не так? Пишет просто БД не подключена хотя она правильна написана сравнивал 2 часа и хз чё делать.
 
Пользователь
Регистрация
31 Июл 2024
Сообщения
48
Приветствую, что пишет в server_log'e?
@z1poff, Привествую, вот

----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team

[21:02:24] filterscripts = "" (string)
[21:02:24]
[21:02:24] Server Plugins
[21:02:24] --------------
[21:02:24] Loading plugin: mysql
[21:02:24] Failed (plugins/mysql: cannot open shared object file: No such file or directory)
[21:02:24] Loading plugin: jit
[21:02:24] Failed (plugins/jit: cannot open shared object file: No such file or directory)
[21:02:24] Loading plugin: sscanf
[21:02:24] Failed (plugins/sscanf: cannot open shared object file: No such file or directory)
[21:02:24] Loading plugin: streamer
[21:02:24] Failed (plugins/streamer: cannot open shared object file: No such file or directory)
[21:02:24] Loading plugin: pawncmd
[21:02:24] Failed (plugins/pawncmd: cannot open shared object file: No such file or directory)
[21:02:24] Loading plugin: MapAndreas
[21:02:24] Failed (plugins/MapAndreas: cannot open shared object file: No such file or directory)
[21:02:24] Loading plugin: CRP
[21:02:24] Failed (plugins/CRP: cannot open shared object file: No such file or directory)
[21:02:24] Loading plugin: TOTP
[21:02:24] Failed (plugins/TOTP: cannot open shared object file: No such file or directory)
[21:02:24] Loaded 0 plugins.

[21:02:24]
[21:02:24] Filterscripts
[21:02:24] ---------------
[21:02:24] Loaded 0 filterscripts.

[21:02:24] Script[gamemodes/social.amx]: Run time error 19: "File or function is not found"
[21:02:24] Number of vehicle models: 0
[21:02:50] [connection] 93.125.71.74:58766 requests connection cookie.
[21:02:51] [connection] incoming connection: 93.125.71.74:58766 id: 0
[21:02:51] [join] Stas_Fedorovich has joined the server (0:93.125.71.74)
[21:03:59] [part] Stas_Fedorovich has left the server (0:1)
 
Команда форума
Администратор
Регистрация
1 Апр 2022
Сообщения
482
@z1poff, Привествую, вот

----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team

[21:02:24] filterscripts = "" (string)
[21:02:24]
[21:02:24] Server Plugins
[21:02:24] --------------
[21:02:24] Loading plugin: mysql
[21:02:24] Failed (plugins/mysql: cannot open shared object file: No such file or directory)
[21:02:24] Loading plugin: jit
[21:02:24] Failed (plugins/jit: cannot open shared object file: No such file or directory)
[21:02:24] Loading plugin: sscanf
[21:02:24] Failed (plugins/sscanf: cannot open shared object file: No such file or directory)
[21:02:24] Loading plugin: streamer
[21:02:24] Failed (plugins/streamer: cannot open shared object file: No such file or directory)
[21:02:24] Loading plugin: pawncmd
[21:02:24] Failed (plugins/pawncmd: cannot open shared object file: No such file or directory)
[21:02:24] Loading plugin: MapAndreas
[21:02:24] Failed (plugins/MapAndreas: cannot open shared object file: No such file or directory)
[21:02:24] Loading plugin: CRP
[21:02:24] Failed (plugins/CRP: cannot open shared object file: No such file or directory)
[21:02:24] Loading plugin: TOTP
[21:02:24] Failed (plugins/TOTP: cannot open shared object file: No such file or directory)
[21:02:24] Loaded 0 plugins.

[21:02:24]
[21:02:24] Filterscripts
[21:02:24] ---------------
[21:02:24] Loaded 0 filterscripts.

[21:02:24] Script[gamemodes/social.amx]: Run time error 19: "File or function is not found"
[21:02:24] Number of vehicle models: 0
[21:02:50] [connection] 93.125.71.74:58766 requests connection cookie.
[21:02:51] [connection] incoming connection: 93.125.71.74:58766 id: 0
[21:02:51] [join] Stas_Fedorovich has joined the server (0:93.125.71.74)
[21:03:59] [part] Stas_Fedorovich has left the server (0:1)
Перейдите в server.cfg -> ко всем плагинам в конец добавьте .so и перезапустите сервер
 
Пользователь
Регистрация
31 Июл 2024
Сообщения
48
Перейдите в server.cfg -> ко всем плагинам в конец добавьте .so и перезапустите сервер
@z1poff, У меня и так прописанно.

crashdetect.so streamer.so mysql_static.so pawncmd.so regex.so SKY.so sscanf.so mysql.so pawnbots.so pawnraknet.so
 
Команда форума
Администратор
Регистрация
1 Апр 2022
Сообщения
482
Пользователь
Регистрация
14 Авг 2023
Сообщения
103
У тебя написано так:
connects = mysql_connect(host, user, db, pass);

Но в Define так:
#define sqlhost "127.0.0.1" // Адрес хоста
#define sqluser "user4**28" // Имя пользователя
#define sqlpass "*SK**fL**dqE" // Пароль
#define sqldb "user4**28" // Имя Базы данных
Попробуй переделать Define на:
Код:
#define host "127.0.0.1" // Адрес хоста

#define user "user4**28" // Имя пользователя

#define pass "*SK**fL**dqE" // Пароль

#define db "user4**28" // Имя Базы данных
 
Сверху