SolvedInclude arrays that is not in the thread

Posts 1–3 of 3 · Page 1 of 1
Include arrays that is not in the thread
Well, my friend is having a problem.

Well, he is making an buy menu with arrays (As the buy item)

Now he have a problem with adding the 82 arrays into each thread. (he have 4 threads that is usning the arrays)


So instead of adding all the arrays 4 times (For each thread)


Can he make an thread that will be used for all the buy threads. (That use the arrays.)


Example:
Arrays()
{
array = [];

array[0] = "ak47_mp";
array[1] = "fal_mp";
array[2] = "masada_mp";
}
And an thread that will use the arrays:
WeaponGive()
{
self giveweapon(array[2]);
self switchtoweapon(array[2]);
}


Clear:

How to include arrays that is not in the same thread as they are used in.


READ:
This is not used in the _rank.gsc
So he can't add it to the init()
[The thread]
@Skyline.
/Solved & Remove/Delete this thread.
Thanks
.solved
.closed
Posts 1–3 of 3 · Page 1 of 1
This thread is closed for replies.

Tags for this Thread

None

Need help?