Posts: 1,241
Threads: 67
Joined: Dec 2013
Quote:
Originally Posted by S4t3K
I suggest you, to make your code as clear as possible, to use only one function but with a "step" parameter.
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;
}
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.
|
I made it like this so I can edit each signle thing from camera to virtual world, Since the other parts of my tuturial will take place in other worlds