plugins/testsuite/goto_test.sp
author Ruben Gonzalez <drifter01620@gmail.com>
Thu May 22 09:49:27 2014 -0400 (2014-05-22)
changeset 4378 568f4497ef4a
parent 1931 e0187c4811c5
permissions -rw-r--r--
Update CS:GO team score gamedata.
     1 #include <sourcemod>
     2 
     3 public OnPluginStart()
     4 {
     5 	RegServerCmd("test_goto", Test_Goto);
     6 }
     7 
     8 public Action:Test_Goto(args)
     9 {
    10 	new bool:hello = false;
    11 	new String:crab[] = "space crab";
    12 
    13 sample_label:
    14 
    15 	new String:yam[] = "yams";
    16 
    17 	PrintToServer("%s %s", crab, yam);
    18 
    19 	if (!hello)
    20 	{
    21 		new bool:what = true;
    22 		hello = what
    23 		goto sample_label;
    24 	}
    25 
    26 	return Plugin_Handled;
    27 }
    28