23.12.2014, 19:55
It doesn't matter if you have return or not the default return is always 0 even if return is not present.
This will print 4 and 0
pawn Код:
#include <a_samp>
public OnFilterScriptInit()
{
new a = 4;
printf("Value before function: %i", a);
a = TestFunction();
printf("Value after function: %i", a);
return 1;
}
TestFunction()
{
}