Reply to Re: Mkbul's code error thread
If you don't have an account, just leave the password field blank.
So, i have this code:
void main(void)
{
sp_touch_damage(¤t_sprite, -1);
}
void touch(void)
{
sp_touch_damage(¤t_sprite, 0);
sound:
int &crap = random(10, 1);
if (&crap == 5)
{
playsound(35, 17000, 0, 0, 0);
}
wait(10);
goto sound;
}
you pretty much understood what i want to do...i want it to play a sound everyonce in a while... but it does not work, any help?
void main(void)
{
sp_touch_damage(¤t_sprite, -1);
}
void touch(void)
{
sp_touch_damage(¤t_sprite, 0);
sound:
int &crap = random(10, 1);
if (&crap == 5)
{
playsound(35, 17000, 0, 0, 0);
}
wait(10);
goto sound;
}
you pretty much understood what i want to do...i want it to play a sound everyonce in a while... but it does not work, any help?