AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   copyback (https://forums.alliedmods.net/showthread.php?t=54374)

pRED* 04-23-2007 23:07

copyback
 
How do you make a function copy back?

Like when you change the passed parameters in the function they are also changed where they are called from?
Like pointers in C..

regalis 04-24-2007 09:56

Re: copyback
 
As far as i know Arrays are always passed by reference.
I would make other types global!?

Any other idea?

VEN 04-24-2007 14:42

Re: copyback
 
Code:

func(&param) {
        param = /* something */
}


pRED* 04-24-2007 18:21

Re: copyback
 
Oh cool thanks VEN. :up:


All times are GMT -4. The time now is 06:37.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.