19.06.2016, 11:20
Hi, so I receive this error
error 021: symbol already defined: "@yH_GameModeInit2"
I do know what it mean, but I do not know how to fix this, Since I really need to use hook OnGameModeInit() twice.
This is the Gamemode:
and example of hooking
error 021: symbol already defined: "@yH_GameModeInit2"
I do know what it mean, but I do not know how to fix this, Since I really need to use hook OnGameModeInit() twice.
This is the Gamemode:
PHP код:
//-----------------------------// //--------------//
// Bayside Roleplay //--------------// By Meller //
//-----------------------------// //--------------//
#include <a_samp>
#include <YSI\y_hooks>
#include <YSI\y_ini> //dont worry about this and filemanager, switching to mysql.
#include <FileManager>
#include <sscanf2>
#include <easy-mysql>
#include "../BSRP/packages/database/index.pwn"
#include "../BSRP/packages/dialogs.pwn"
#include "../BSRP/packages/textdraws.pwn"
#include "../BSRP/packages/server/functions.pwn"
#include "../BSRP/packages/server/index.pwn"
#include "../BSRP/packages/player/index.pwn"
#include "../BSRP/packages/player/functions.pwn"
PHP код:
hook OnGameModeInit()
{
SQL::Connect("localhost", "root", "BSRP", "dont worry about the pass");
}