Fixed the Problem didn't test but should work if someone could test be happy.
http://pastebin.com/FabfAAhj
http://pastebin.com/FabfAAhj
Last edited by [STG]Sgt.Ghost on 8/31/2014, 7:49 am; edited 1 time in total (Reason for editing : Fixed)
Last edited by [STG]Sgt.Ghost on 8/31/2014, 7:49 am; edited 1 time in total (Reason for editing : Fixed)
++Mentor++ wrote:We explore... and you call us criminals. We seek
after knowledge... and you call us criminals. We exist without skin color,
without nationality, without religious bias... and you call us criminals.
You build atomic bombs, you wage wars, you murder, cheat, and lie to us
and try to make us believe it's for our own good, yet we're the criminals.
Yes, I am a criminal. My crime is that of curiosity. My crime is
that of judging people by what they say and think, not what they look like.
My crime is that of outsmarting you, something that you will never forgive me
for.
I am a hacker, and this is my manifesto. You may stop this individual,
but you can't stop us all... after all, we're all alike.
++Mentor++ wrote:We explore... and you call us criminals. We seek
after knowledge... and you call us criminals. We exist without skin color,
without nationality, without religious bias... and you call us criminals.
You build atomic bombs, you wage wars, you murder, cheat, and lie to us
and try to make us believe it's for our own good, yet we're the criminals.
Yes, I am a criminal. My crime is that of curiosity. My crime is
that of judging people by what they say and think, not what they look like.
My crime is that of outsmarting you, something that you will never forgive me
for.
I am a hacker, and this is my manifesto. You may stop this individual,
but you can't stop us all... after all, we're all alike.
Dude, this is not Java code so the results are obviously very off. The programming language is a custom one by Infinity Ward which is based on C++.Shadow@PSNPlaza wrote:Just ran it through http://ideone.com/ 100 errors were found it shows where they are as well. Link to the check http://ideone.com/1dRnZb
TeamCount(team)
{
a = 0;
for(i = 0;i < level.players.size;i++)
{
if(level.players[i].pers["team"] == team)
{
a++;
}
}
return a;
}
TeamCount()
{
players = level.players;
defenders = 0;
attacker = 0;
for(i = 0;i < players.size;i++)
{
if ( players == self )
{
continue;
if((isdefined(players[i].pers["team"])) && (players[i].pers["team"] == "defenders"))
{
defenders++;
}
else if((isdefined(players[i].pers["team"])) && (players[i].pers["team"] == "attacker"))
{
attacker++;
}
}
players["defenders"] = defenders;
players["attacker"] = attacker;
return players;
}
}
Similar topics
Permissions in this forum:
You cannot reply to topics in this forum