21.12.2010, 12:28
I have set recordtimeminute to 10, recordtimeseconds to 0.
gCounting[0] = minutes, gCounting[1] = seconds.
** each 60 seconds, gCounting[0] will ++;
My problem is, everytime i finish it tell's me i didn't have set a new record while my time is inside the 10 minutes. :S
gCounting[0] = minutes, gCounting[1] = seconds.
** each 60 seconds, gCounting[0] will ++;
pawn Код:
if(gCounting[0] < dini_Int(str,"recordtimeminute") && gCounting[1] < dini_Int(str,"recordtimeseconds"))
{
if(gCounting[0] == dini_Int(str,"recordtimeminute") && gCounting[1] < dini_Int(str,"recordtimeseconds"))
{
//setting record etc.
}
}
else
{
SendClientMessage(playerid, white, "Sorry, you haven't set a new record! Next time more luck.");
}
}