Random timer
#1

How to make this timer go from minimum 5 seconds, to 70 seconds?

pawn Код:
fishtimer[playerid] = SetTimerEx("FishTimer", random(5000-70000+1)+1000, false, "i", playerid);
Reply
#2

pawn Код:
fishtimer[playerid] = SetTimerEx("FishTimer", RandomBetween(5000, 70000), false, "i", playerid);

stock RandomBetween(minimum_value, maximum_value)
{
    return (random((maximum_value - minimum_value) + 1) + minimum_value);
}
Reply
#3

Thanks alot, rep+
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)