• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] symbol already defined: "@yH_OnScriptInit@003"
#1
I tried to hook OnScriptInit
Here my main.pwn


Code:
#include <a_samp>

#undef ? MAX_PLAYERS
#define MAX_PLAYERS 100

#define YSI_NO_OPTIMISATION_MESSAGE
#define YSI_NO_CACHE_MESSAGE
#define YSI_NO_MODE_CACHE
#define YSI_NO_HEAP_MALLOC
#define YSI_NO_VERSION_CHECK

#include <a_mysql>
#include? ? <streamer>
#include? ? <sscanf2>
#include? ? <Pawn.CMD>

// YSI-Include 5.x
#include <YSI_Data/y_iterate>
#include <YSI_Coding/y_timers>

#include "test.pwn"
#include "test1.pwn"


test.pwn


Code:
#include <YSI_Coding/y_hooks>

hook OnScriptInit()
{
? ? print("test1");
? ? return 1;
}


test1.pwn


Code:
#include <YSI_Coding/y_hooks>

hook OnScriptInit()
{
? ? print("test2");
? ? return 1;
}


F:\samp\gamemodes\test1.pwn:4 (error) symbol already defined: "@yH_OnScriptInit@003"
Install by sampctl package install pawn-lang/[email protected]
  Reply


Messages In This Thread
symbol already defined: "@yH_OnScriptInit@003" - by Zow - 2020-06-24, 06:19 AM

Forum Jump: