Question on calling my includes callbacks in scripts - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Question on calling my includes callbacks in scripts (
/showthread.php?tid=440287)
Question on calling my includes callbacks in scripts -
Abhishek. - 29.05.2013
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
Re: Question on calling my includes callbacks in scripts -
Scenario - 29.05.2013
CallRemoteFunction
Fixed -
Abhishek. - 29.05.2013
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
Re: Question on calling my includes callbacks in scripts -
Scenario - 29.05.2013
Oh, check out y_hooks.