Page 1 of 2

help!

PostPosted: Sat Feb 24, 2007 11:17 pm
by DarkParadox
whats wrong with this code (i'm not that good i just guessed)
Code: Select all
if(stab==1)
{
    DestroyActor("meanytest.0");
}
else
{
    DestroyActor("link_player");
}

o and meany test means its just a test so i can do it on the real bad guys

PostPosted: Sat Feb 24, 2007 11:21 pm
by UltimatHedgehog
link as in legend of zelda

PostPosted: Sat Feb 24, 2007 11:28 pm
by DarkParadox
ya im creating a zelda game

PostPosted: Sat Feb 24, 2007 11:38 pm
by UltimatHedgehog
i want next

PostPosted: Sun Feb 25, 2007 12:01 am
by Sgt. Sparky
What do you want next?
and why is the topic "Help!"?
:D

PostPosted: Sun Feb 25, 2007 1:24 am
by DarkParadox
because i need help

PostPosted: Sun Feb 25, 2007 1:25 am
by DarkParadox
because i need help

PostPosted: Sun Feb 25, 2007 1:26 am
by UltimatHedgehog
you sure do :lol:

PostPosted: Sun Feb 25, 2007 1:27 am
by UltimatHedgehog
*wispering* with your serious mental problems

<_<
>_>

PostPosted: Sun Feb 25, 2007 1:28 am
by Sgt. Sparky
what do you now need help with?
:D

PostPosted: Sun Feb 25, 2007 1:36 am
by DarkParadox
whats wrong with this code
Code: Select all
if(stab==1)
{
    DestroyActor("meanytest.0");
}
else
{
    DestroyActor("link_player");


PostPosted: Sun Feb 25, 2007 1:40 am
by Sgt. Sparky
does it say "Error" or somthing?
you can/must use else if(so and so is so and so)
:)
but you can still use {
and }
:D

PostPosted: Sun Feb 25, 2007 1:40 am
by Game A Gogo
send me a ged file whit the data files, and i should be able to resolve your problem

PostPosted: Sun Feb 25, 2007 1:45 am
by DarkParadox
somthings wrong with the code no matter what it always kills the actor (not link_player!!).

PostPosted: Sun Feb 25, 2007 1:47 am
by Kodo
There's actually nothing wrong with your code (as you’ve got it displayed here, assuming that both actors exist and the variable 'stab' has also been created), but it sounds like the condition stab==1 is never true. For meanytest to be destroyed stab must be set to 1 in an event somewhere before this code is run.