Can someone explain what this means?
#3

Код:
new currentHour = GetCurrentHour()
This is him getting the number of the hour (so if it's 2:00AM it returns 2, if it's 11:33AM it returns 11)

Код:
stock GetCurrentHour()
{
    new currentHour[3];
    gettime(currentHour[0], currentHour[1], currentHour[2]);
    return currentHour[0];
}
This should be pretty easy, if you're familiar with PAWN at all, or any programming.. He's defining a new array (new currentHour[3]) with 3 slots.. (0, 1, 2).

He's then getting the hour, minute, and second with gettime and assigning them to slots in the array he just created.

Then he's returning the HOUR (for the thing we discussed above "currentHour").

Please post the entire script and explain what you mean by "bugged" and I'll try to help figure it out. For now I see nothing that's wrong.
Reply


Messages In This Thread
Can someone explain what this means? - by Kindred - 25.05.2013, 19:10
Re: Can someone explain what this means? - by PrivatioBoni - 25.05.2013, 19:15
Re: Can someone explain what this means? - by TheStreetsRP - 25.05.2013, 19:17

Forum Jump:


Users browsing this thread: 1 Guest(s)