Advanced Search

Author Topic: WCOLORS won't compile  (Read 1456 times)

0 Members and 1 Guest are viewing this topic.

June 02, 2013, 02:36:14 AM
Read 1456 times

Offline TheDoc

  • Standard Member
  • Date Registered: August 31, 2011, 10:37:33 PM

    • View Profile
WCOLORS won't compile
« on: June 02, 2013, 02:36:14 AM »
It keeps saying
Code: [Select]
Function consoleplayernumber is used but not defined.because of this
Code: [Select]
Script 255 ENTER NET CLIENTSIDE
{
If(PlayerIsBot(PlayerNumber())){terminate;} //Since this is pointless for bots
Delay(10);
If(GetCvar("cl_NoEnergyColors") == 0){ConsoleCommand("set cl_NoEnergyColors 0");ConsoleCommand("ArchiveCvar cl_NoEnergyColors");}
If(GetCvar("cl_NoEnergyColors") > 0){ConsoleCommand("ArchiveCvar cl_NoEnergyColors 1");terminate;} While(PlayerInGame(ConsolePlayerNumber()))
{
If(PlayerNumber()!=ConsolePlayerNumber())
{
ConsoleCommand("Puke 255");
terminate;
}
Thing_SetTranslation(999, -1);
Delay(1);
}
}
Can I comment this out or something?

June 02, 2013, 02:45:41 AM
Reply #1

Offline Ivory

  • MM8BDM Extender
  • *********
  • Date Registered: August 25, 2009, 08:17:59 AM

    • View Profile
    • http://www.cutstuff.net/
Re: WCOLORS won't compile
« Reply #1 on: June 02, 2013, 02:45:41 AM »
Nope, you need to use this zandronum ACS compiler.

Download it, then link slumped or slade to it. I forget how to do it in slumped, but with slade it's Editor > Preferences and under the scripting section.

Oh right, and for future reference, that piece of code relates to energy/tanks/etc changing colors with the player's current weapon. You can comment it out safely, but then you ruin that functionality in the mod.

June 02, 2013, 02:56:47 AM
Reply #2

Offline TheDoc

  • Standard Member
  • Date Registered: August 31, 2011, 10:37:33 PM

    • View Profile
Re: WCOLORS won't compile
« Reply #2 on: June 02, 2013, 02:56:47 AM »
Works, now. Thanks!