myvar=rand(3)
if (myvar=1)PlaySound("my_sound_1", 1.000000, 1, 0.000000);
if (myvar=2)PlaySound("my_sound_2", 1.000000, 1, 0.000000);
if (myvar=3)PlaySound("my_sound_3", 1.000000, 1, 0.000000);
if (myvar=1)PlaySound("my_sound_1", 1.000000, 1, 0.000000);
if (myvar=2)PlaySound("my_sound_2", 1.000000, 1, 0.000000);
if (myvar=3)PlaySound("my_sound_3", 1.000000, 1, 0.000000);
myvar++;
if (myvar=4) myvar=1;
makslane wrote:Don't use if(myvar=1) .... //put the 1 in myvar
Use: if(myvar == 1) ... //Compares myvar to 1
Users browsing this forum: No registered users and 1 guest