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

y_hooks multiple includes

I have a problem using y_hooks:

ID
d6ouivfilegovhg7bbb0
author
ireal-worlds's avatar

iReal Worlds

@ireal-worlds


View profile
Copy link
  Report member
started
Jun 7, 2019
replies
0
participating
No

scroll to top

powered by storyden

Login
Discussion
Pawn Scripting
y_hooks multiple includes
ireal-worlds's avatar

iReal Worlds

@ireal-worlds


View profile
Copy link
  Report member
• 7y
Pawn Scripting

y_hooks multiple includes

pawn

I have a problem using y_hooks:

I have the main gamemode (main.pwn), and two "modules" that are included in it: "module1.inc" and "module2.inc".



In both of them, I have to use y_hooks. From what I knew, you had to reinclude y_hooks if you wanted to hook to the same function, so at top of each module, I have

#include "..\include\YSI\y_hooks.inc"



But I get a "symbol already defined" error in "module2" for the callbacks that have already been hooked to in the first one.

0 likes0 replies

    Please sign up or log in to reply