Switch
Posted: Sat Jul 17, 2004 5:16 am
hay guys do u have any idea why this wouldnt work?
This is what changes the scoreboard
From what i have red that should check what local.objs is and set the scoreboard to suit. At the moment it doesnt do anything to the scoreboard. i dont think there is anything in local.objs for some reason 
i am using this to add one (1) to local.objs
i was told that adds one onto what ever local.objs is.
and last at the top of the script i am using local.objs = 0 so it sets the scoreboard to 0. if u can help me out i would realy appreciate it
This is what changes the scoreboard
Code: Select all
scoreboard:
while (1) {
switch ( local.objs )
{
case 0:
setcvar "g_obj_alliedtext2" "( 0 / 2 )"
break
case 1:
setcvar "g_obj_alliedtext2" "( 1 / 2 )"
break
case 2:
setcvar "g_obj_alliedtext2" "( 2 / 2 )"
break
Default:
setcvar "g_obj_alliedtext2" "( 0 / 2 )"
break
}
wait 1
}
i am using this to add one (1) to local.objs
Code: Select all
local.objs++
and last at the top of the script i am using local.objs = 0 so it sets the scoreboard to 0. if u can help me out i would realy appreciate it