PDA

View Full Version : COG help needed



Lifeform
02-08-2001, 08:29 AM
ok,here is my cog,now something is incorrect,but what?

<font face="Verdana, Arial" size="2"># Jedi Knight Cog Script
#
# inv1.COG
#
# [Lifeform]
#
#
# This Cog is Not supported by LucasArts Entertainment Co

symbols

Sector green linkid=1
Sector red linkid=2
Sector gold linkid=3
surface plygre
surface plyred
surface plygol
thing player local
int num local

message entered


end

# ================================================== ======================================

code
Entered:
player = GetLocalPlayerThing();
if(GetSenderID() == 1);
{
SetPlayerTeam(player,1);
num = ((GetNumPlayersInTeam(1)) + 1);
SetWallCel(plygre,num);
}
if(GetSenderID() == 2);
{
SetPlayerTeam(player,2);
num = ((GetNumPlayersInTeam(2)) + 1);
SetWallCel(plyred,num);
}
if(GetSenderID() == 3);
{
SetPlayerTeam(player,3);
num = ((GetNumPlayersInTeam(3)) + 1);
SetWallCel(plygol,num);
}

Return;
end


</font>
Please help me


------------------
The path has been placed before you,
the choise is yours alone.
It will be a hard life,
but you will find out:
Who you are.

Chris Swan
02-08-2001, 10:16 AM
Try taking out the semicolons after the "if" parts (e.g. change "if(GetSenderID() == 1);" to "if(GetSenderID() == 1)".

Lifeform
02-08-2001, 10:59 AM
Nope,it just messes up the cog...

------------------
The path has been placed before you,
the choise is yours alone.
It will be a hard life,
but you will find out:
Who you are.

Lt_Greywolf
02-08-2001, 11:01 AM
oppps beat me to it. http://forums.massassi.net/html/wink.gif

------------------
The only way to live a good life is to act on your emotions.

[This message has been edited by Lt_Greywolf (edited February 08, 2001).]

Aglar
02-08-2001, 11:36 AM
Never, ever, end the first line of an IF with a semi colon. Example: IF on == 1 (good)
IF on == 1; (bad)

------------------
Together we stand.
Divided we fall.