Forums Index >> Modding >> I need help with my Team Infiltrator script
Page : <1> :
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
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
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?
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
^You should've read the whole post. I found that problem easily, but if you check he now has another error!
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