Nepex
Нуль
- Регистрация
- 2 Мар 2020
- Сообщения
- 3
- Лучшие ответы
- 0
- Репутация
- 0
_______________[ warning 213: tag mismatch ]______________
_______________[ MySQL R41-4 ]______________
Решил попрактиковаться в MySQL, вот:
HTML:
Server SA-MP\gamemodes\new.pwn(33) : warning 213: tag mismatch
Server SA-MP\gamemodes\new.pwn(33) : warning 204: symbol is assigned a value that is never used: "DBconnectID"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Warnings.
Прошу помощи :bc:
====================[Сам Проблемный Код]====================
====================[Сам Проблемный Код]====================
Мод пишу с нуля( т.к. в чужих мне сложно разобраться )
PHP:
new DBconnectID;
PHP:
public OnGameModeInit()
{
DBconnectID = mysql_connect("localhost", "root", "creame", ""); // это 33 сторка
TestBDconnect();
SetGameModeText("v 0.01");
EnableStuntBonusForAll(0);
DisableInteriorEnterExits();
return 1;
}
Также лог MySQL:
HTML:
[ERROR] mysql_connect: handle error: no database specified
[ERROR] mysql_errno: invalid connection handle '1'
[ERROR] mysql_errno: invalid connection handle '1'
И лог сервера:
HTML:
----------
Loaded log file: "server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team
[01:58:15] filterscripts = "" (string)
[01:58:15]
[01:58:15] Server Plugins
[01:58:15] --------------
[01:58:15] Loading plugin: mysql
[01:58:15] >> plugin.mysql: R41-4 successfully loaded.
[01:58:15] Loaded.
[01:58:15] Loaded 1 plugins.
[01:58:15]
[01:58:15] Filterscripts
[01:58:15] ---------------
[01:58:15] Loaded 0 filterscripts.
[01:58:15] Подключение к БД - Ошибка! [Неизвестная ошибка. Код ошибки: -1]
[01:58:15] ----------------------------------
[01:58:15] Creame Start!
[01:58:15] ----------------------------------
[01:58:15] Number of vehicle models: 0
Если нужно ещё что-то пишите!
:dn:
Последнее редактирование: