Hi. I getan error uninitialised variable accomplishment.
It is my very first script, so it's normal to have obvius bugs or unnecessary code.
Could you help me?
Thanks in advance
It's about COD WaW but I post it here because there isn't a COD WaW section.
It is my very first script, so it's normal to have obvius bugs or unnecessary code.
Could you help me?
Thanks in advance
It's about COD WaW but I post it here because there isn't a COD WaW section.
Code:
#include common_scripts\utility;
#include maps\_zombiemode_utility;
#include maps\_utility;
main()
{
correct = getent( "pass", "targetname" );
wrorgs = getentarray("wrong","targetname");
for(i=0; i<wrorgs.size; i++)
wrorgs[i] thread wrongs();
for(i=0; i<correct.size; i++)
correct[i] thread dartcheck();
}
dartcheck()
{
while (1)
{
self waittill("damage");
if ( isDefined( accomplishment ) )
{
accomplishment = 0;
}
else
{
thread discover();
}
break;
wait .05;
}
}
wrongs()
{
self waittill("damage");
accomplishment = 0;
iprintlnbold( "Wrong target! You are allowed to enter the secret room");
}
discover()
{
iprintlnbold( "You discovered the secret!");
wait .05;
secret_door = getent( "secret_door", "targetname" );
wait .05;
secret_door MoveTo( secret_door.target, .5, 1, 1 );
}