Different types of functions
#1

Which is the difference between this types of functions?
pawn Код:
AddNumber(number1, number2)
{
    new string[45];
    format(string, 45, "Result: %d + %d = %d", number1, number2, number1+number2);
    SendClientMessageToAll(-1, string);
    return 1;
}
pawn Код:
stock AddNumber(number1, number2)
{
    new string[45];
    format(string, 45, "Result: %d + %d = %d", number1, number2, number1+number2);
    SendClientMessageToAll(-1, string);
    return 1;
}
pawn Код:
forward AddNumber(number1, number2);
public AddNumber(number1, number2)
{
    new string[45];
    format(string, 45, "Result: %d + %d = %d", number1, number2, number1+number2);
    SendClientMessageToAll(-1, string);
    return 1;
}

Thanks.
Reply


Messages In This Thread
Different types of functions - by JavoDiaz - 26.12.2012, 00:03
Re: Different types of functions - by SuperViper - 26.12.2012, 00:29
Re: Different types of functions - by JavoDiaz - 26.12.2012, 00:53
Re: Different types of functions - by SuperViper - 26.12.2012, 01:02
Re: Different types of functions - by JavoDiaz - 26.12.2012, 02:03

Forum Jump:


Users browsing this thread: 1 Guest(s)