16.07.2011, 13:31
Is there any way making this easyer?
Like i have a var called Mins so when he passed the checkpoint with more than 60(1 min) Mins = 1;
Ex:
But like instead of writing that all the time.. Is there anyway of a macro or stock so I dont need to write like 60+ seconds?
Like i have a var called Mins so when he passed the checkpoint with more than 60(1 min) Mins = 1;
Ex:
pawn Код:
if(CountRaceTime[playerid][1] >= 60)
{
Mins = 1;
}
else if(CountRaceTime[playerid][1] >= 120)
{
Mins = 2;
}
else if(CountRaceTime[playerid][1] >= 180)
{
Mins = 3;
}
else if(CountRaceTime[playerid][1] >= 260)
{
Mins = 4;
}
else if(CountRaceTime[playerid][1] >= 320)
{
Mins = 5;
}
else if(CountRaceTime[playerid][1] >= 380)
{
Mins = 6;
}