code problem

Non-platform specific questions.

code problem

Postby DarkParadox » Mon Jun 04, 2007 9:17 pm

whats wrong with this code :?:

Code: Select all
if(belltxtnumb.textnumber==>200;
{
    SendActivationEvent("status");
}
User avatar
DarkParadox
 
Posts: 457
Joined: Mon Jan 08, 2007 11:32 pm
Location: USA, Florida.
Score: 84 Give a positive score

Postby d-soldier » Mon Jun 04, 2007 9:28 pm

==

"==" is the IF statement for equals.
Shoudl be "=>" I would think... but what do i know..
User avatar
d-soldier
 
Posts: 703
Joined: Sun Apr 08, 2007 2:13 am
Score: 61 Give a positive score

Re: code problem

Postby Sgt. Sparky » Mon Jun 04, 2007 9:37 pm

diormeh wrote:whats wrong with this code :?:

Code: Select all
if(belltxtnumb.textnumber==>200;
{
    SendActivationEvent("status");
}

also it needs to be textNumber, not textnumber. :D
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score

Postby DarkParadox » Mon Jun 04, 2007 9:43 pm

it says unknown type in binhconst still
User avatar
DarkParadox
 
Posts: 457
Joined: Mon Jan 08, 2007 11:32 pm
Location: USA, Florida.
Score: 84 Give a positive score

Postby d-soldier » Mon Jun 04, 2007 9:47 pm

did you capitalize the "n" as "textNumber"?
User avatar
d-soldier
 
Posts: 703
Joined: Sun Apr 08, 2007 2:13 am
Score: 61 Give a positive score

Postby DarkParadox » Mon Jun 04, 2007 9:49 pm

yes
User avatar
DarkParadox
 
Posts: 457
Joined: Mon Jan 08, 2007 11:32 pm
Location: USA, Florida.
Score: 84 Give a positive score

Postby d-soldier » Mon Jun 04, 2007 9:55 pm

ooohhh...

if(belltxtnumb.textnumber==>200;
{
SendActivationEvent("status");
}

missing a ")" in the top line..
User avatar
d-soldier
 
Posts: 703
Joined: Sun Apr 08, 2007 2:13 am
Score: 61 Give a positive score

Postby DarkParadox » Mon Jun 04, 2007 9:56 pm

i changed it although it still says it.
User avatar
DarkParadox
 
Posts: 457
Joined: Mon Jan 08, 2007 11:32 pm
Location: USA, Florida.
Score: 84 Give a positive score

Postby d-soldier » Mon Jun 04, 2007 9:57 pm

changed it to what... post the updated code... could be misplaced.
User avatar
d-soldier
 
Posts: 703
Joined: Sun Apr 08, 2007 2:13 am
Score: 61 Give a positive score

Postby DarkParadox » Mon Jun 04, 2007 9:58 pm

if(belltxtnumb.textNumber==>200);
{
SendActivationEvent("status");
}
User avatar
DarkParadox
 
Posts: 457
Joined: Mon Jan 08, 2007 11:32 pm
Location: USA, Florida.
Score: 84 Give a positive score

Postby d-soldier » Mon Jun 04, 2007 10:05 pm

I thought I told you to get rid of the "=="
use this example:

if(text_lives.textNumber>0)
{
text_lives.textNumber -= 1;
CreateTimer("Event Actor", "1second", 1000);
}
User avatar
d-soldier
 
Posts: 703
Joined: Sun Apr 08, 2007 2:13 am
Score: 61 Give a positive score

Postby DarkParadox » Mon Jun 04, 2007 10:06 pm

ooohhh :oops:
User avatar
DarkParadox
 
Posts: 457
Joined: Mon Jan 08, 2007 11:32 pm
Location: USA, Florida.
Score: 84 Give a positive score

Postby d-soldier » Mon Jun 04, 2007 11:57 pm

I know, I dont have a mind for coding myself... Does it work now?
User avatar
d-soldier
 
Posts: 703
Joined: Sun Apr 08, 2007 2:13 am
Score: 61 Give a positive score

Postby Fuzzy » Tue Jun 05, 2007 3:42 am

You goofs. you need a closing ) in the if statement line. Good thing I understand the enemy.

if (this => that )

and no ;

on the same line as the if.
Mortal Enemy of IF....THEN(and Inspector Gadget)

Still ThreeFingerPete to tekdino
User avatar
Fuzzy
 
Posts: 1068
Joined: Thu Mar 03, 2005 9:32 am
Location: Plymostic Programmer
Score: 95 Give a positive score

Postby d-soldier » Tue Jun 05, 2007 4:04 am

d-soldier wrote:I thought I told you to get rid of the "=="
use this example:

if(text_lives.textNumber>0)
{
text_lives.textNumber -= 1;
CreateTimer("Event Actor", "1second", 1000);
}


Isnt that what I posted here?
User avatar
d-soldier
 
Posts: 703
Joined: Sun Apr 08, 2007 2:13 am
Score: 61 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest