BullyWiiHacks
Welcome dear guest! Very Happy

To start posting and being part of the BWH community, you simply need to register an account or log into an existing one.

If you do not wish to register at all, that's fine but there will be more advertisements. :/

You can probably see and download most content provided for regular members even without an account.

Your contributions will be greatly appreciated though, give it a shot and register today! thumbsup

Join the forum, it's quick and easy

BullyWiiHacks
Welcome dear guest! Very Happy

To start posting and being part of the BWH community, you simply need to register an account or log into an existing one.

If you do not wish to register at all, that's fine but there will be more advertisements. :/

You can probably see and download most content provided for regular members even without an account.

Your contributions will be greatly appreciated though, give it a shot and register today! thumbsup
BullyWiiHacks
Would you like to react to this message? Create an account in a few clicks or log in to continue.
BullyWiiHacks

Gaming, Modding & Programming

Important reminders:

- Click *HERE* for advanced forum search or check out the text field below on the front page for Google before posting
- NO support via private message (use the forum)
- Write meaningful topic titles
Site Translation
Latest topics
Search
 
 

Display results as :
 


Rechercher Advanced Search

December 2024
MonTueWedThuFriSatSun
      1
2345678
9101112131415
16171819202122
23242526272829
3031     

Calendar Calendar

Country Statistics
Free counters!

You are not connected. Please login or register

New Gametype Help/Check

4 posters

Go down  Message [Page 1 of 1]

1New Gametype Help/Check Empty New Gametype Help/Check 8/28/2014, 5:50 am

[STG]Sgt.Ghost

[STG]Sgt.Ghost
Modder & Code Porter

Fixed the Problem didn't test but should work if someone could test be happy.

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)


_________________
New Gametype Help/Check Cod-gh10
New Gametype Help/Check Coollo10

2New Gametype Help/Check Empty Re: New Gametype Help/Check 8/28/2014, 7:18 am

Bully@WiiPlaza

Bully@WiiPlaza
 
 

Isn't there any syntax checker? This is what I hate on making mods so I don't bother :/


_________________
New Gametype Help/Check YBjg74I

3New Gametype Help/Check Empty Re: New Gametype Help/Check 8/28/2014, 1:01 pm

[STG]Sgt.Ghost

[STG]Sgt.Ghost
Modder & Code Porter

Their is, but it doesn't find any bad syntax...?


_________________
New Gametype Help/Check Cod-gh10
New Gametype Help/Check Coollo10

Binary@BWH

Binary@BWH
Uber Website Hacker and Mod

I can't find ANY bad syntax.... Maybe somewhere you added an extra "(" or "{" those can cause issues >_<.... but other than that the script looks almost flawless.


_________________
New Gametype Help/Check Cjy6OBw

++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.



New Gametype Help/Check Ghu3eV

New Gametype Help/Check Goombasig

5New Gametype Help/Check Empty Re: New Gametype Help/Check 8/29/2014, 3:52 am

Shadow@BWH

avatar
 
 

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


_________________
New Gametype Help/Check BAjMdNS

6New Gametype Help/Check Empty Re: New Gametype Help/Check 8/29/2014, 3:57 am

Binary@BWH

Binary@BWH
Uber Website Hacker and Mod

Most are minor flaws is what came up on my syntax checker


_________________
New Gametype Help/Check Cjy6OBw

++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.



New Gametype Help/Check Ghu3eV

New Gametype Help/Check Goombasig

7New Gametype Help/Check Empty Re: New Gametype Help/Check 8/29/2014, 5:47 am

Bully@WiiPlaza

Bully@WiiPlaza
 
 

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
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++.


_________________
New Gametype Help/Check YBjg74I

8New Gametype Help/Check Empty Re: New Gametype Help/Check 8/29/2014, 6:20 am

Shadow@BWH

avatar
 
 

I thought it ran a check for that to it came up in the description I'll find a new one.
Had to run it as C++ 11 http://ideone.com/xQghAo I'll keep looking.


_________________
New Gametype Help/Check BAjMdNS

9New Gametype Help/Check Empty Re: New Gametype Help/Check 8/31/2014, 7:52 am

[STG]Sgt.Ghost

[STG]Sgt.Ghost
Modder & Code Porter

Could Someone test this please.

 (old One) This Part I fixed Caused I think It wouldn't work. It said unitilized varibable team.)
Code:
TeamCount(team)
{
      a = 0;

         for(i = 0;i < level.players.size;i++)
      {
              if(level.players[i].pers["team"] == team)
              {
                      a++;
              }
      }

      return a;
}

New One

(Old One On Bottom.) (This Is New)
Code:
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;
       }
}


_________________
New Gametype Help/Check Cod-gh10
New Gametype Help/Check Coollo10

10New Gametype Help/Check Empty Re: New Gametype Help/Check 8/31/2014, 10:08 am

Bully@WiiPlaza

Bully@WiiPlaza
 
 

How is team undeclared if it's a parameter for that function? Do you need to specify the type of it?


_________________
New Gametype Help/Check YBjg74I

Sponsored content



Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum