CopyArray

CopyArray
int CopyArray(string source, string dest)

Documentation

Copies data from one global int/string array to another, if they're of compatible size and type.

Returns 1 on success, 0 on failure.

Example Usage

string foo[2];
string bar[2];

void autoexec() {

    foo[0] = "taco";
    foo[1] = "burrito";

    bar[0] = "carrot";
    bar[1] = "celery";

    CopyArray("foo", "bar"); //bar[0] is now "taco"

    MessageBox( bar[0] );
}
Talkback

There are no talkbacks on this documentation page yet. Post the first?

Post a new comment?

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.