Page 1 of 1

Else fucntion expected ; error ?!!?

PostPosted: Tue Mar 04, 2008 9:56 pm
by kirby
Someone help us for just a sec'. Sorry i've been stop'ed makin' games. But i've start workin'..... Anyway.
How to use Else Function... Other's stuff with else funct' it works. But for meh, Isn't workin' anyway. When i type
else, and with teh vars, and others stuffes. And'en, there!! Pop up an error. Says
Code: Select all
Error Line  1: Expected ;

Gah!! What'en meaning????? I just tried everything, still popin' up each time i clickin' the ADD.
:| Surely can someone help'ittle? spitty... :)

Re: Else fucntion expected ; error ?!!?

PostPosted: Tue Mar 04, 2008 10:18 pm
by D.caaz
whats the code you're using? maybe i can help.

Re: Else fucntion expected ; error ?!!?

PostPosted: Tue Mar 04, 2008 10:27 pm
by kirby
Well... This'sit...
Code: Select all
if (slowmo == 0) slowmo = 1;
else if(slowmo == 1) slowmo = 0;


or

Code: Select all
slowmo = 0;
else slowmo = 1;


...Not workin', That give us error. Expected ;. Weird... :D

Re: Else fucntion expected ; error ?!!?

PostPosted: Tue Mar 04, 2008 10:32 pm
by pyrometal
Use this

Code: Select all
if(!slowmo)
{
    slowmo = 1;
}

else
{
    slowmo = 0;
}

Re: Else fucntion expected ; error ?!!?

PostPosted: Tue Mar 04, 2008 10:42 pm
by kirby
Hey... wait a minute... something wrong... yeah i know thanks for the code, it work. But i test my code... on the FIRST on i type.

Code: Select all
if (slowmo == 0) slowmo = 1;
else (slowmo == 1) slowmo = 0;


And this one workin' ????? :oops:
Maybe i just type something wrong on the code.