26.06.2015, 14:16
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:
(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
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); }
What you think?
And what is better of this?:
1. Just 1 timer with 1000 lines
2. 5 timers with 200 lines