This one:
- Code: Select all
if (dice_result == 6)
{
Actor*tmpac;
tmpac = getactor(x,y);
allow_key_a = 0;
PlaySound2("data/snd_granted.wav", 1.000000, 1, 0.000000);
CreateActor("playerring", "selectring2", "(none)", "(none)", 0, 18, 0);
}
...works!
This one:
- Code: Select all
if (dice_result == 6)
{
allow_key_a = 0;
PlaySound2("data/snd_granted.wav", 1.000000, 1, 0.000000);
CreateActor("playerring", "selectring2", "(none)", "(none)", 0, 18, 0);
Actor*tmpac;
tmpac = getactor(x,y);
}
...does not! (???)
"Unexpected Declaration CreateActor"
Huh?
The only difference is that i placed the Actor*AndSoOn code after the playsound and createactor commands.
Why does this make a difference?
(Forgive me if i´m stupid )