Search

open.mp forum

RegisterLogin

Discussion

General
Chat
Tech
Life
Art
Programming
open.mp
Development Updates
Questions and Suggestions
SA-MP
General Discussions
Videos and Screenshots
Support
Pawn Scripting
Tutorials
Releases
Plugins
Libraries
Filterscripts
Gamemodes
Maps
Advertisements
Other languages
Spanish/Espa?ol
Programaci?n
Discusi?n GTA SA Multijugador
Mods
Offtopic
Juegos
Portuguese/Portugu?s
Russian/???????
Italian/Italiano
Dutch/Nederlands
German/Deutsch
Romanian/Rom?na
Ex-Yu
Polish/Polski
Og?lne
Serwery
Skryptowanie
Filmiki i zdjecia
Lithuanian/Lietuvi?kas
French/Fran?ais
Hungarian/Magyar
Hindi/Urdu
Turkish
Other
Internal
Team
Hidden
Archived

Library

 Collections Links Members Roles

symbol already defined: "@yH_OnScriptInit@003"

I tried to hook OnScriptInit

ID
d6ouivfilegovhg7bg30
author
zow's avatar

Zow

@zow


View profile
Copy link
  Report member
started
Jun 24, 2020
replies
0
participating
No

scroll to top

powered by storyden

Login
Discussion
Pawn Scripting
symbol already defined: "@yH_OnScriptInit@003"
zow's avatar

Zow

@zow


View profile
Copy link
  Report member
• 5y
Pawn Scripting

symbol already defined: "@yH_OnScriptInit@003"

pawn

I tried to hook OnScriptInit
Here my main.pwn


#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


#include <YSI_Coding/y_hooks>

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




test1.pwn


#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]

0 likes0 replies

    Please sign up or log in to reply