SA-MP Forums Archive
Two Questions ! - 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: Two Questions ! (/showthread.php?tid=66931)



Two Questions ! - russiany - 25.02.2009

1. What's mean NATIVE ? Because in some .inc i see #native <function>
2. What's mean STATIC ? e.g:

pawn Код:
static gTeam[MAX_PLAYERS];
* i've searched on WIKI & pawn-lang.pdf and i didn't find


Re: Two Questions ! - JaYmE - 25.02.2009

Quote:

1. What's mean NATIVE ? Because in some .inc i see #native <function>

This tells Pawno.exe's script functions what things should be in the functions E.G

SetGameModeText(const string[]);

Means

SetGameModeText("This is a string");

Quote:

What's mean STATIC ?

static and bool are native C / C++ integers

they just meen its a simple true or false

in pawno static's can be new's or bool's

the are used for certain things in C / C++
but in pawno it is just classed as a new :P

Hope that helps


Re: Two Questions ! - Daren_Jacobson - 25.02.2009

static doesn't get trashed at the end of the function it was created in though.