Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: Fjose on Nov 21, 2014, 08:49 PM

Title: onTimeChange problem
Post by: Fjose on Nov 21, 2014, 08:49 PM
Simply I was testing this code
function onTimeChange( hr, min)
{
     print( "Server Time: " + hr + ":" + min );
}

and I'm receiving this message: AN ERROR HAS OCURRED [Wrong numbers of parameters]
CALLSTACK
LOCALS
Title: Re: onTimeChange problem
Post by: Stormeus on Nov 21, 2014, 10:06 PM
Syntax is onTimeChange(oldHour, oldMinute, newHour, newMinute)

In retrospect this may be somewhat verbose.