What is better?
#1

I have 4 publics for tutorial and first public Tutorial(playerid); calls when player is registered. Now i have question:
How to call other publics?

1. SetTimer for call next public

2. Set TutTime[playerid] = 1;
And global timer, which is repeating every 1 second, will do this:
Код:
	if(TutTime[i] >= 1)
			{
			    TutTime[i] += 1;
			    if(TutTime[i] == 15)
			    {
			    Tutorial1(i);
			    }
			    else if(TutTime[i] == 30)
			    {
			    Tutorial2(i);
			    }
			    else if(TutTime[i] == 45)
			    {
			    Tutorial3(i);
			    }
(This is just a part of one global timer, i use him for more things)
What you think?


And what is better of this?:
1. Just 1 timer with 1000 lines
2. 5 timers with 200 lines
Reply
#2

I personally use a single global timer for all of my tasks however it performs multiple jobs...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)