07.06.2014, 14:58
I suggest you, to make your code as clear as possible, to use only one function but with a "step" parameter.
For example
I think you've understood.
And using this way, you will also be able to see what's going wrong in each specific step without searching through each step to know the next one.
For example
PHP код:
public tutorial(playerid, step)
{
switch(step)
{
case 1:
{
// First step of your tutorial
SetTimerEx("tutorial", time, false, "ii", playerid, 2);
}
case 2:
{
// Second step of your tutorial
SetTimerEx("tutorial", time, false, "ii", playerid, 3);
}
}
return 1;
}
And using this way, you will also be able to see what's going wrong in each specific step without searching through each step to know the next one.