25.05.2013, 19:10
Hello. My friend gave me his script to work on since he retired. The payday system is bugged and I don't know why. Can someone explain to me what this line means, piece by piece please?
This is the GetCurrentHour function:
And under a loop that executes every 30 seconds:
pawn Код:
new currentHour = GetCurrentHour(), string[128];
if(currentHour == (TMPHour[0] + 1) || (TMPHour[0] == 23 && currentHour == 0))
{
pawn Код:
stock GetCurrentHour()
{
new currentHour[3];
gettime(currentHour[0], currentHour[1], currentHour[2]);
return currentHour[0];
}
pawn Код:
gettime(TMPHour[0], TMPHour[1], TMPHour[2]);