Function: Native - 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: Function: Native (
/showthread.php?tid=310465)
Function: Native -
Max_Coldheart - 12.01.2012
Well, there's a function in pawn called "native". I don't know how to use it (to create new functions?). I'd like to know how can I use this to create new functions, and what's the syntax of it, and there could be a tutorial on how to use it. (also how to assign the function a use?) I've searched the wiki, but it's empty for the function "native".
So could someone explain me, it's syntax, tell me how to assign the function created with it it's syntax and make it do what I want it to do (?) and/or create a tutorial of it.
Re: Function: Native -
Konstantinos - 12.01.2012
native
Re: Function: Native -
RoboN1X - 12.01.2012
im not sure, but check here:
https://sampwiki.blast.hk/wiki/Keywords:Initialisers#native
Edit: im too late a few seconds
, delete this post pls
Re: Function: Native -
Max_Coldheart - 12.01.2012
So the function should be declared (so that the function does something), I need to use it inside a plugin?
Re: Function: Native - suhrab_mujeeb - 12.01.2012
Or use commented natives in includes to add the function to your sidebar.
Re: Function: Native -
Max_Coldheart - 12.01.2012
Quote:
Originally Posted by ******
You can't just do:
pawn Код:
native DisableAllCheats();
main() { DisableAllCheats(); }
And expect it to work - that would require intelligent computers, and we don't have them. You have to write the native function in a plugin, then using "native" in your PAWN script gives it access to the function in the plugin
|
Yes this is just what I meant, that I can't do it like this. The main point of my question was, "how to actually declare the native", so if I'd create it in a plugin, how would I declare the native what it should do?