SA-MP Forums Archive
qustion about Native function(); - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: qustion about Native function(); (/showthread.php?tid=85132)



qustion about Native function(); - ғαιιοцт - 05.07.2009

what does 'native' do?
I know where it's used and I see it's always used to show all functions of an include

it's used like this:
Code:
native SetConsoleTextColor(Attributes);
so what does it do? does anything changes if I delete it?


Re: qustion about Native function(); - James_Alex - 05.07.2009

yup
when u delete it, when you compile you get undefined symbol...
the native is used to find the symbol when we use a plugin functions


Re: qustion about Native function(); - Ignas1337 - 05.07.2009

yes, and pawno.exe reads them and adds them into the side panel from the include. you can use advantage of your own include-based functions like u create a funciton in an include and use native f(x) where f is your funciton and x is param. it would give you a nice listing for the include ;]


Re: qustion about Native function(); - yom - 05.07.2009

As habitually, just open the Pawn manual, click on Functions/Native functions, and read! If you don't have a .pdf reader, i suggest you install Sumatra pdf.


Re: qustion about Native function(); - Ignas1337 - 05.07.2009

well, opera opens .pdf files just fine for me ;]


Re: qustion about Native function(); - yom - 05.07.2009

Quote:
Originally Posted by Izanagi
well, opera opens .pdf files just fine for me ;]
Unfortunately Chrome don't, yet.


Re: qustion about Native function(); - Ignas1337 - 05.07.2009

first, it is 'doesn't' and second, I see... well that's sad ;] anyway I have acrobat reader too just in case. it came with windows, so..


Re: qustion about Native function(); - ғαιιοцт - 05.07.2009

thanks all


Re: qustion about Native function(); - yom - 05.07.2009

Chrome can open pdf, but it need acrobat and it's plugin to be installed. Thanks for correcting me, i'm not english.


Re: qustion about Native function(); - Ignas1337 - 05.07.2009

wel, it can but with a plugin, which is not possesed by every and single chrome user ;]