SA-MP Forums Archive
Using Goto - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Using Goto (/showthread.php?tid=221355)



Using Goto - iJumbo - 05.02.2011

This thing can work ? its faster slower ?


pawn Код:
public Function1()
{
    if(Var1 == true) goto Test1;
    if(Var2 == true) goto Test2;
    //
    Test1:
    print("Test1");
    Test2:
    print("Test2");
}



Re: Using Goto - Stylock - 05.02.2011

I don't recommend using goto, because I read it can cause problems.


Re: Using Goto - iJumbo - 05.02.2011

mmmmm