Forums Index >> Modding >> I need help with my Team Infiltrator script



Page : <1> :


Hey folks,

I have made a Team Infiltrator script, all by myself :). Looking for things in other scripts mainly AC's CTF script which I thank him for!
But now every time I try to launch it gives me a syntax error and I don't have a clue what to do.
Is there anyone interested in improving my script together with me so I will learn from my mistakes.
Aka:
Art Crazy
CannedSplam
Warfare

Please...

Scythe

Sunday, April 16, 2006 at 11:08:35 AM

Post the syntax error that it gives you and I'll see what I can fix...


Last edited: Sunday, April 16, 2006 at 3:04:50 PM

Sunday, April 16, 2006 at 3:04:34 PM

CannedSplam just fixed most of it..
It still gives this error:

 

Compiling game/TINF/TINFmain.cs...
game/TINF/TINFmain.cs Line: 146 - Syntax error.
>>> Advanced script error report. Line 146.
>>> Some error context, with ## on sides of error halt:
BottomPrint(40bj.client,"Mod Author:" SPC $ModAuthor
if(##G##etGreenCount() > getBlueCount() )
0bj.client.team = "BlueTeam";
>>> Error report complete.

Executing game/TINF/TINFmain.cs.
game/TINF/TINFmain.cs Line: 146 - Syntax error.
>>> Advanced script error report. Line 146.
>>> Some error context, with ## on sides of error halt:
BottomPrint(40bj.client,"Mod Author:" SPC $ModAuthor
if(##G##etGreenCount() > getBlueCount() )
0bj.client.team = "BlueTeam";
>>> Error report complete.

Game/TINF/TINFmain.cs (24): string always evaluates to 0.
game/TINF/TINFmain.cs (31): string always evaluates to 0.
game/TINF/TINFmain.cs (61): string always evaluates to 0.
game/TINF/TINFmain.cs (67): string always evaluates to 0.
Compiling game/TINF/TINFdatablocks.cs...
game/TINF/TINFdatablocks.cs Line: 1 - Syntax error.
>>> Advanced script error report. Line 1.
>>> Some error context, with ## on sides of error halt:
####rtf1macansicpg10000cocoartf824cocoasubrtf330
{fonttblf0fnilfcharset77 Monaco;}
>>> Error report complete.

Executing game/TINF/TINFdatablocks.cs.
game/TINF/TINFdatablocks.cs Line: 1 - Syntax error.
>>> Advanced script error report. Line 1.
>>> Some error context, with ## on sides of error halt:
####rtf1macansicpg10000cocoartf824cocoasubrtf330
{fonttblf0fnilfcharset77 Monaco;}
>>> Error report complete.

Compiling game/TINF/TINFmessages.cs...
game/TINF/TINFmessages.cs Line: 1 - Syntax error.
>>> Advanced script error report. Line 1.
>>> Some error context, with ## on sides of error halt:
####
>>> Error report complete.

Executing game/TINF/TINFmessages.cs.
game/TINF/TINFmessages.cs Line: 1 - Syntax error.
>>> Advanced script error report. Line 1.
>>> Some error context, with ## on sides of error halt:
####
>>> Error report complete.

 

 

Function TankData::onAdd(%this,%obj)
{
if(%obj.client.deaths == 0 && !isObject( %obj.client.ai ) )
{
CenterPrint(%obj.client,"type /intructions for help",3,1);
BottomPrint(%obj.client,"Mod Author:" SPC $ModAuthor
if(getGreenCount() > getBlueCount() )
%obj.client.team = "BlueTeam";

If ( getGreenCount() < getBlueCount() )
%obj.client.team = "GreenTeam";
}
}

 


This is where the problem is located.

That is the last thing...

Scythe

Sunday, April 16, 2006 at 3:15:02 PM

 

 

Function TankData::onAdd(%this,%obj)
{
if(%obj.client.deaths == 0 && !isObject( %obj.client.ai ) )
{
CenterPrint(%obj.client,"type /intructions for help",3,1);
BottomPrint(%obj.client,"Mod Author:" SPC $ModAuthor);
if(getGreenCount() > getBlueCount() )
%obj.client.team = "BlueTeam";

If ( getGreenCount() < getBlueCount() )
%obj.client.team = "GreenTeam";
}
}

 

Maybe that'll work?


Sunday, April 16, 2006 at 3:20:24 PM

It fixed that error, but it has created another one :S
I ve emailed you the file AC!

Scythe
EDIT:
Here is the error:

 

Ompiling game/TINF/TINFmain.cs...
game/TINF/TINFmain.cs Line: 140 - Syntax error.
>>> Advanced script error report. Line 140.
>>> Some error context, with ## on sides of error halt:
6.79039e-313reenCount++;
}
}
return 0reenCount;
}^^
Function TankData:##:##onAdd(2883584s,0bj)
{
^if(0bj.client.deaths == 0 && !isObject( 12447760bj.client.ai ) )
>>> Error report complete.

Executing game/TINF/TINFmain.cs.
game/TINF/TINFmain.cs Line: 140 - Syntax error.
>>> Advanced script error report. Line 140.
>>> Some error context, with ## on sides of error halt:
6.79039e-313reenCount++;
}
}
return 0reenCount;
}^^
Function TankData:##:##onAdd(2883584s,0bj)
{
^if(0bj.client.deaths == 0 && !isObject( 12447760bj.client.ai ) )
>>> Error report complete.

Game/TINF/TINFmain.cs (24): string always evaluates to 0.
game/TINF/TINFmain.cs (31): string always evaluates to 0.
game/TINF/TINFmain.cs (61): string always evaluates to 0.
game/TINF/TINFmain.cs (67): string always evaluates to 0.
Compiling game/TINF/TINFdatablocks.cs...
game/TINF/TINFdatablocks.cs Line: 1 - Syntax error.
>>> Advanced script error report. Line 1.
>>> Some error context, with ## on sides of error halt:
####rtf1macansicpg10000cocoartf824cocoasubrtf330
{fonttblf0fnilfcharset77 Monaco;}
>>> Error report complete.

Executing game/TINF/TINFdatablocks.cs.
game/TINF/TINFdatablocks.cs Line: 1 - Syntax error.
>>> Advanced script error report. Line 1.
>>> Some error context, with ## on sides of error halt:
####rtf1macansicpg10000cocoartf824cocoasubrtf330
{fonttblf0fnilfcharset77 Monaco;}
>>> Error report complete.

Compiling game/TINF/TINFmessages.cs...
game/TINF/TINFmessages.cs Line: 1 - Syntax error.
>>> Advanced script error report. Line 1.
>>> Some error context, with ## on sides of error halt:
####
>>> Error report complete.

Executing game/TINF/TINFmessages.cs.
game/TINF/TINFmessages.cs Line: 1 - Syntax error.
>>> Advanced script error report. Line 1.
>>> Some error context, with ## on sides of error halt:
####
>>> Error report complete.

#> Segmentation fault

 

 

Last edited: Sunday, April 16, 2006 at 3:42:06 PM

Sunday, April 16, 2006 at 3:39:07 PM

Its alright I already gave him a new one dat has no problems... Billy looked too.

The problem was:

 

                                        
BottomPrint(%obj.client,"Mod Author:" SPC $ModAuthor);

 

Missing two args

Sunday, April 16, 2006 at 4:15:01 PM

^You should've read the whole post. I found that problem easily, but if you check he now has another error!


Monday, April 17, 2006 at 3:20:18 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