Forums Index >> Modding >> Help With Function Script



Page : <1> :


I am trying to learn some scripting, and having read some tutorials and stuff have embarked on a new gametype of sorts, but I am having trouble with this function:.

Function GateBGoal::OnEnter(%db,%this,%tank)
{
%client = %this.client;
%name = %client.namebase;

BottomPrintAll(%name@ "Activated" %client.team@ "Team's Goal!",4,1);
$RollerB::GateBAct = true;
}

The following error on the dedecated shows up and I cant work out whats wrong:

BottomPrintAll(%name@ "Activated" %client.##t##eam@ "Team's Goal!",4,1);

Any ideas or suggestions?

Daz

 

 

 

 

Last edited: Wednesday, January 25, 2006 at 1:47:03 PM

Wednesday, January 25, 2006 at 1:45:56 PM

Well... That "4,1)" on the end seems a bit fishy (normally the numbers are the same) but most of the time the ##s come after the actual error. I'm a bit of a newbie to scripting but I can't really see anything wrong there.

Wednesday, January 25, 2006 at 1:57:25 PM

Maybe its the exclamation mark

Wednesday, January 25, 2006 at 3:11:57 PM

BottomPrintAll(%name SPC "Activated" SPC %client.team@ "Team's Goal!",4,1);

Clear enough?
PS I edited the first @ because SPC automatically adds a space, and @ doesnt... The second one shouldnt have a space so I didnt edit it...
if you remember you didnt "join" the activated and %client.team with @ or SPC, generating the script error...


Thursday, January 26, 2006 at 1:01:39 PM

@ AC

Thanks man that seem to have solved it, well for now anyway :P

Much Appreciated

Daz

 

 

 

 

Friday, January 27, 2006 at 5:38:42 AM

Page : <1> :

insert quote insert url insert email insert image bold italic underline superscript subscript horizontal rule : : Help on using forum codes

Add comment:

HTML is disabled within comments, but ZBB Code is enabled.

Back to the top

Web site designed, maintained and funded by -z- and Dan MacDonald