General Question About Timers
#2

It doesn't matter if you have return or not the default return is always 0 even if return is not present.

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()
{
}
This will print 4 and 0
Reply


Messages In This Thread
General Question About Timers - by jonrb - 23.12.2014, 19:32
Re: General Question About Timers - by Pottus - 23.12.2014, 19:55
Re: General Question About Timers - by iKyle - 23.12.2014, 20:18
Re: General Question About Timers - by jonrb - 23.12.2014, 20:20
Re: General Question About Timers - by jonrb - 26.12.2014, 18:44
Re: General Question About Timers - by nickdodd25 - 26.12.2014, 22:02

Forum Jump:


Users browsing this thread: 1 Guest(s)