Ooops..console errors!
Posted: Mon Apr 27, 2009 6:59 pm
someone can tell me what's wrong with this?
it's causing this error message in console
Code: Select all
main:
level waittill prespawn
local.timeleft = (int(getcvar"timelimit")) * 60
thread global/sp_initial.scr::variables_declaration
thread main_of_the_mod
main_of_the_mod:
while ( local.timeleft > 0 )
{
wait 1
local.new_time = local.timeleft - 1
local.timeleft = local.new_time
}
while(local.timeleft != 0)
{
thread global/Sp_ingame.scr::look_for_news
waitframe
}
while(local.timeleft != 0)
{
thread global/Sp_ingame.scr::check_for_new_players
waitframe
}
while(local.timeleft != 0)
{
thread global/Sp_ingame.scr::activated
waitframe
}
while(local.timeleft != 0)
{
thread global/Sp_ingame.scr::display_pool
waitframe
}
level waittill spawn
level waittill prespawn (global/spawnpool-mode.scr, 3)
level ^
^~^~^ Script Error: invalid waittill prespawn for 'Level'
while ( local.timeleft > 0 ) (global/spawnpool-mode.scr, 13)
while ( local.timeleft ^
^~^~^ Script Error: binary '>' applied to incompatible types 'NIL' and 'int'