30.09.2016, 21:34
As the function says...it sets the value of an argument..for example:
The usage:
First the argument...in this case 0...cause we only pass 1 argument, and we know its always on the first place so 0.
The index of integer Values is always 0 (only for strings to go through an arrays it can be 0-sizeof(arr))
And last the value you wanna set
PHP Code:
stock setter(...)
{
setarg(0,0,999);
}
//Usage:
new x=0;
setter(x);
//and now x=999
PHP Code:
setarg(arg, index=0, value)
The index of integer Values is always 0 (only for strings to go through an arrays it can be 0-sizeof(arr))
And last the value you wanna set