This topic was marked solved by its starter, on November 22nd, 2014, 12:21 AM
onTimeChange problem
[SCRIPT] Announce Error »

Fjose

  • Jr. Member
  • Programmer
  • Posts: 90
onTimeChange problem
« on November 21st, 2014, 08:49 PM »
Simply I was testing this code
Code: [Select]
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

Stormeus

  • VC:MP Developer
  • oh god how did i get here im not good w computer
  • Posts: 1,068
Re: onTimeChange problem
« Reply #1, on November 21st, 2014, 10:06 PM »
Syntax is onTimeChange(oldHour, oldMinute, newHour, newMinute)

In retrospect this may be somewhat verbose.