SA-MP Forums Archive
How to hook main entry? - 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: How to hook main entry? (/showthread.php?tid=599381)



How to hook main entry? - graef - 25.01.2016

I've tried hook main() using hook ALS 7 but didn't work, can someone show me how to hook main() ? I've searched about this but i didn't found how to solve this.


Re: How to hook main entry? - Vince - 25.01.2016

You can't hook main because it is not a public function in the normal sense and it doesn't have the 'public' keyword, either.