Simple Question.
#3

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(playeridstep)
{
      switch(
step)
      {
            case 
1:
            {
                  
// First step of your tutorial
                  
SetTimerEx("tutorial"timefalse"ii"playerid2);
            }
            case 
2:
            {
                  
// Second step of your tutorial
                  
SetTimerEx("tutorial"timefalse"ii"playerid3);
            }
      }
      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
Reply


Messages In This Thread
Simple Question. - by Clad - 07.06.2014, 14:50
Re : Simple Question. - by S4t3K - 07.06.2014, 14:58
Re : Simple Question. - by Clad - 07.06.2014, 15:00
Re : Simple Question. - by S4t3K - 07.06.2014, 15:03
Re : Simple Question. - by Clad - 07.06.2014, 15:05
Re : Simple Question. - by S4t3K - 07.06.2014, 15:07
Re : Simple Question. - by Clad - 07.06.2014, 15:12
Re : Simple Question. - by S4t3K - 07.06.2014, 15:15

Forum Jump:


Users browsing this thread: 2 Guest(s)