ItsMods

Full Version: Awesome Code But Broken
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
level thread Awesome();


Code:
Awesome()
{
  for(;;)
   {
    players = CountPlayers();
    iprintlnbold("There currently are ^1" + players["allies"] + " ^7allies and ^2" + players["axis"] + "axis"); // Allies
    wait 0.1;
   }
}
iprintlnbold should probably be done on a entity. Like this: self iprintlnbold("Hello World");
(07-22-2011, 10:29)Justin Wrote: [ -> ]iprintlnbold should probably be done on a entity. Like this: self iprintlnbold("Hello World");

If you use this:
self iprintlnbold("Hello World");
only the entity will see the message if you use this
iprintlnbold("Hello World"); all can see the message
Hmm, there is no error i think :/
What's the error you're getting?
(07-22-2011, 11:19)Phl3x_ Wrote: [ -> ]What's the error you're getting?

Yes, that would be pretty helpful Wink
CountPlayers(); Does it exist?
(07-22-2011, 13:33)Puffiamo Wrote: [ -> ]CountPlayers(); Does it exist?

Well I get stuck at waiting for challenge...1 in loading but no errors and yes it does exist (no errors in it since it comes from treyarch)


Got it working added some wait time and it loads now but now I have a problem after the ^2 everything is green I only want the part with players to be in green not the "axis"

EDIT: fixed again nvm