Hey, I'm new to VB6 and I'm pretty confused on this part of my trainer. It isn't my first one but, the other ones were just dumb practice ones. Anyways, I was wondering on how I change a variable when the variable looks like this
Code:
guns_damage = [5, 3, 15, 10, 10, 40, 50, 30, 25, 100, 35];
I put my button and make the function this
Code:
Call Test.SetVariable("gus_damage", 9999)
I've also tryed
Code:
Call Test.SetVariable("guns_damage", [9999, 9999, 9999, 9999, 9999, 9999, 9999, 9999, 9999, 9999, 9999])
and
Code:
Call Test.SetVariable("guns_damage", 9999, 9999, 9999, 9999, 9999, 9999, 9999, 9999, 9999, 9999, 9999)
With no luck, I'm stumped.
Also, the whole function for the gun variables is,
Code:
function set_gun_variables()
{
guns_cooldown = [6, 4, 12, 30, 5, 20, 45, 30, 30, 80, 30];
guns_damage = [5, 3, 15, 10, 10, 40, 50, 30, 25, 100, 35];
guns_bullet_id = [1, 1, 1, 5, 1, 2, 1, 3, 4, 0, 6];
guns_bullet_speed = [10, 10, 10, 10, 10, 6.500000E+000, 10, 7, 5, 0, 10];
guns_ammo = [300, 200, 10, 10, 0, 0, 0, 0, 0, 0, 100];
guns_take = [300, 100, 20, 15, 50, 10, 10, 20, 12, 20];
score = [];
team1_score = 0;
team2_score = 0;
}