[SA-MP plugins] static functions
#1

Example function copied from Pawn Impementer's Guide
Код:
static cell n_sin(AMX *amx, const cell *params)
{
  float r = sin( amx_ctof(params[1]) );
  return ftoc®;
}
Everyting is quite clear here. Except for the fact, that function is declared static! Not all of them are declared using this keyword however. Can anyone explain, what's the point using it?
Reply


Messages In This Thread
[SA-MP plugins] static functions - by Baltazar - 02.08.2014, 14:13
Re: [SA-MP plugins] static functions - by Stanford - 02.08.2014, 14:22
Re: [SA-MP plugins] static functions - by Baltazar - 02.08.2014, 14:26
Re: [SA-MP plugins] static functions - by Stanford - 02.08.2014, 14:30

Forum Jump:


Users browsing this thread: 3 Guest(s)