How to create own function
#5

callbacks and functions aren't the same.
use
pawn Код:
FunctionName(parameters)
{
  return value;
}
or
pawn Код:
stock FunctionName(parameters)
{
  return value;
}
value equals the number (or array) you want to return. Use value as 1, if you dont need to return anything specific. Read on wiki the difference between stock functions and common functions
Reply


Messages In This Thread
How to create own function - by ajwar - 18.06.2011, 16:15
Re: How to create own function - by randomkid88 - 18.06.2011, 16:17
Re: How to create own function - by ajwar - 18.06.2011, 17:19
Re: How to create own function - by ajwar - 18.06.2011, 18:40
Re: How to create own function - by Macluawn - 18.06.2011, 18:58

Forum Jump:


Users browsing this thread: 2 Guest(s)