Author Topic: Schedule not running  (Read 719 times)

Is there some obvious reason this schedule would not run?  The first echo appears, but not the second.

Code: [Select]
%killer.FK_ReduceSchedule = schedule(3000,0, FK_Reduce, %killer);
echo("schedule sent");

Code: [Select]
function gameConnection::FK_Reduce(%client)
{
%client.FK_Count = %client.FK_Count - 1;

if(%client.FK_Count < 0)
%client.FK_Count = 0;
       echo("FK reduced");

}

%killer.FK_ReduceSchedule = %killer.schedule(3000,FK_Reduce);

also %client.FK_Count -= 1; btw

thank you, can't believe i overlooked that [again].

For subtracting things by one, you can also do %client.FK_Count --;, same as adding: %client.FK_Count ++; or %client.FK_Count += 1;