gettime not working
#1

Actually my aim is to script for Happy hour(were a score is a bit extra, in my server) and i want it to work it only for 2 hours, that is from 18h to 20h so here's my code!

P.S I dont get any compile errors, but have i placed it in wrong place??

pawn Код:
public OnPlayerUpdate(playerid)
{
    if(happyhour[playerid] == 0)
    {
    happyhour[playerid] = 0;
    }
    //Happy Hour
    new hours,minutes,seconds;
    gettime(hours, minutes, seconds);
    if(hours > 18)
    {
       happyhour[playerid] = 1;
    }
    if(hours < 20)
    {
       happyhour[playerid] = 0;
    }
is there any problem in mine??
Reply


Messages In This Thread
gettime not working - by DetoNater - 22.12.2015, 18:23
Re: gettime not working - by Mencent - 22.12.2015, 18:41
Re: gettime not working - by PrO.GameR - 22.12.2015, 18:42
Re: gettime not working - by TwinkiDaBoss - 22.12.2015, 19:00
Re: gettime not working - by DetoNater - 23.12.2015, 04:24

Forum Jump:


Users browsing this thread: 1 Guest(s)