Question on calling my includes callbacks in scripts
#1

hey guy,
i would like to ask
is there any way(i know there is) to call my includes functions in any scripts callback
because i cant do it like
pawn Code:
public OnGameModeIne
{
myFunction():
return 1;
}
or it would be called twice and it says callback alredydefined error or thing
thx for the assistance in advance
Reply
#2

CallRemoteFunction
Reply
#3

but for that i think i need to add a line in the script?
its like i want everything in the include to run by itself and i dont want to add more lines in my GM
except #include <myinclude>
like in streamer we just use the function CreateDynamicvehicle
and nothing else and streamer does all the streaming and thing by itself as the Gm is called
is there any way or is it possible only in plugins?(Dont know anything about plugins)
EDIT:i think i figured out the way
by
#if defined my_include CallRemoteFunction()// hope it will work if someone denies it then we can discuss further
Reply
#4

Oh, check out y_hooks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)