Function that return more than 1 value.
#2

Use globals or pass refrences.

Global:

pawn Код:
new
    a = 1;

myFunc()
{
    a = 5;
}
Reference:

pawn Код:
new
    a = 1;

myFunc(&blah)
{
    blah = 5;
}

// usage
myFunc(a);
Reply


Messages In This Thread
Function that return more than 1 value. - by CoaPsyFactor - 24.08.2010, 12:29
Re: Function that return more than 1 value. - by Donny_k - 24.08.2010, 12:51
Re: Function that return more than 1 value. - by CoaPsyFactor - 24.08.2010, 12:56
Re: Function that return more than 1 value. - by CoaPsyFactor - 24.08.2010, 13:26
Re: Function that return more than 1 value. - by RSX - 24.08.2010, 13:57

Forum Jump:


Users browsing this thread: 1 Guest(s)