19.02.2014, 12:37
Ok, i have a single question if you can answer to me ...
In C++, there is an ampersand ( & ) that change the value of a variable when it returns it.
My question, is .. how can i use that operator :
Just look:
C++
In PAWN: what i've tried:
But whenever i compile i get errors..
In C++, there is an ampersand ( & ) that change the value of a variable when it returns it.
My question, is .. how can i use that operator :
Just look:
C++
Код:
int return_ovalue ( int& x) { x = x; return x; } // it return the value and also change it... :)
Код:
stock SetVal(new& x) { x = x ;return x; } / the same thing as in c++