Page 1 of 1

hi i need help on this script error code i received

PostPosted: Wed Nov 28, 2018 7:51 pm
by gvargas2194303
hi i recieved this custom script for fortnite

Code: Select all
/* *
* GPC SCRIPT
*
*  GPC is a scripting language with C-like syntax.
*  To learn more access GPC Language Reference on Help menu.
* *********************************************************** */

 
main {
 
    //
    // The main procedure is called before every report is sent to
    // console. You can think of this procedure as a loop which only
    // ends when the script is unloaded.
    //
    // TODO: handle/change values of buttons, analog stick and/or sensors
    //
 
}
/* *
* GPC SCRIPT
*
*  GPC is a scripting language with C-like syntax.
*  To learn more access GPC Language Reference on Help menu.
* *********************************************************** */

 
main {
 
    //
    // The main procedure is called before every report is sent to
    // console. You can think of this procedure as a loop which only
    // ends when the script is unloaded.
    //
    // TODO: handle/change values of buttons, analog stick and/or sensors
    //
 
}
/* *
* GPC SCRIPT
*
*  GPC is a scripting language with C-like syntax.
*  To learn more access GPC Language Reference on Help menu.
* *********************************************************** */

 
main {
 
    //
    // The main procedure is called before every report is sent to
    // console. You can think of this procedure as a loop which only
    // ends when the script is unloaded.
    //
    // TODO: handle/change values of buttons, analog stick and/or sensors
    //
 
}

Code: Select all
/*
 FORTNITE - BATTLE ROYAL GAMEPACK FOR device / TITAN ONE / TITAN TWO
                             TOGGLE MENU                                                  DESCRIPTION
=========================================================================================================================================================================================================================================
                      |------*/
int In_Game_Sens   = 8;     /*#######|------------------- SENSITIVITY OPTIMIZING! -------------------|
                                                       *\------------------------------------/*
                      |------*/
int AntiRecoil     = TRUE/*#######|--------------------- NO toggle available! --------------------|
                      |------*/
int Aimbot         = TRUE/*#######|------- HOLD "Scope_BTN" and press "UP" for toggle       ------|
                      |------*/
int AimAssist      = TRUE; /*#######|--------------------- NO toggle available!  --------------------|
                      |------*/
int DropShot       = TRUE; /*#######|------- HOLD "Scope_BTN" and press "Reload_BTN" for toggle -------|
                      |------*/
int HairTrigger    = TRUE/*#######|--------------------- NO toggle available! --------------------|
                      |------*/
int RumbleNotify   = TRUE/*#######|--------------------- NO toggle available! --------------------|   
                      |------*/
int ButtonSwap     = FALSE; /*#######|--------------------- NO toggle available! --------------------|
                      |------*/
int InstaSwap      = TRUE/*#######|--------------------- NO toggle available! --------------------|
                      |------*/
int RapidFire       = TRUE; /*#######|------- HOLD "Scope_BIN" and press "RIGHT" for toggle -------|
                      |------*/
int GhostPeeking       = TRUE; /*#######|------- HOLD "Scope_BIN" and press "L1" for toggle -------|
========================================================================================================================================================================================================================================*/

//\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\|
//----------------------------------------------------------------------------------|                                                                         
// VERSION: GAMEPACK V3                                                             |
/////////////////////////////////////////////////////////////////////////////////////
int Scope_BTN;int Shoot_BTN;int LY;int Run_BTN;int Reload_BTN;int Jump_BTN;int UP;int RY;int RIGHT;int RX;
int Crouch_BTN;int RightBumber;int LeftBumber;int Left;int Down;int a;int b;int Melee_BTN; int Switch_BTN;
 
 
 
 
  int  AimBot = TRUE;
 
int rumble_type = RUMBLE_A;
 
 
 
//AimAssist: 
  int valueY             = 12;
  int valueX             = 12;
  int delayA             = 14;
 
  int RF = TRUE;
int rfs =5;
int rfs2 =5;
 
//NoRecoil:
  int antirecoil_sg      = 18;
  int antirecoil_fg      = 20;
  int antirecoil;
 
 
//BlockMod:
  int button;
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
init { //-BUTTON LAYOUT-\\ 
if(get_console() == PIO_PS4){
   Scope_BTN = PS4_L2;
   Shoot_BTN = PS4_R2;
   LY = PS4_LY;
   Run_BTN = PS4_L3;
   Reload_BTN = PS4_SQUARE;
   Jump_BTN = PS4_CROSS;
   UP = PS4_UP;
   RY = PS4_RY;
   RIGHT = PS4_RIGHT;
   RX = PS4_RX;
   RY = PS4_RY;
   Crouch_BTN = PS4_CIRCLE;
   Left = PS4_LEFT;
   Down = PS4_DOWN;
   RightBumber = PS4_R1;
   LeftBumber = PS4_L1;
   Melee_BTN = PS4_R3;
   Switch_BTN = PS4_TRIANGLE;
   }else{
   Switch_BTN = XB1_Y;
   RightBumber = XB1_RB;
   Scope_BTN = XB1_LT;
   Shoot_BTN = XB1_RT;
   LY = XB1_LY;
   Run_BTN = XB1_LS;
   Reload_BTN = XB1_X;
   Jump_BTN = XB1_A;
   UP = XB1_UP;
   RY = XB1_RY;
   RIGHT = XB1_RIGHT;
   RX = XB1_RX;
   RY = XB1_RY;
   Crouch_BTN = XB1_B;
   Left = XB1_LEFT;
   Down = XB1_DOWN;
   LeftBumber = XB1_LB;
   Melee_BTN = XB1_RS;
   }   
 
 
   //NoRecoil - InGameSens Optimizing
   antirecoil_sg = antirecoil_sg*4/In_Game_Sens;
   antirecoil_fg = antirecoil_fg*4/In_Game_Sens;
 
}//CREDITS: WuMx
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
main {
if(ButtonSwap){
   swap (PS4_R2,PS4_R1);
   swap (PS4_L2,PS4_L1)
}
if(HairTrigger){
   if(get_val(Scope_BTN)){set_val(Scope_BTN,100);}
   if(get_val(Shoot_BTN)){set_val(Shoot_BTN,100);}
   }
if(AimAssist){
   if(get_val(Scope_BTN)){
      combo_run(AssY);
      combo_run(AssX);
      }
      if((get_val(RY)) > valueY || (get_val(RY)) < valueY*(-1)){
          combo_stop(AssY);
          }
      if((get_val(RX)) > valueX || (get_val(RX)) < valueX*(-1)){
          combo_stop(AssX);
          }
      }   
 
 
  if(get_val(Scope_BTN) && event_press(RIGHT)){
   RF = ! RF;
   if(RF == TRUE){combo_run(Notify);a=0;b=2;}
   if(RF == FALSE){combo_run(Notify);a=2;b=0;}
 
   }
   if(RF){
    if((get_val(Scope_BTN)) && (get_val(Shoot_BTN)))  {
        combo_run(RF)
       }
    }
 
 
if(get_val(7) && event_press(13)){
   AimBot =! AimBot;
}
if(AimBot){
   if(get_val(7)> 95){
      combo_run(AimBot);}
   if(event_release(7)){ combo_stop(AimBot);
}
}
 
 
 
if(AntiRecoil){
  if(get_val(Shoot_BTN)){combo_run(Antirecoil);}
  if(get_rumble(RUMBLE_A) > 5 && get_rumble(RUMBLE_A) <= 50){antirecoil = antirecoil_sg;}
  if(get_rumble(RUMBLE_A) > 50){antirecoil = antirecoil_fg;}
  if(abs(get_val(RY)) >= antirecoil+ 10){combo_stop(Antirecoil);}
   }
 
if(get_val(Scope_BTN) && event_press(Reload_BTN)){
   button = Reload_BTN;
   combo_run(BlockButton);
   DropShot =! DropShot;
   if(DropShot == TRUE){combo_run(Notify);a=0;b=2;}
   if(DropShot == FALSE){combo_run(Notify);a=2;b=0;}
   }
   if(DropShot){
      if(get_val(Scope_BTN)&&get_val(Shoot_BTN)){combo_run(DropShot);}
      }     
 
if(get_val(Scope_BTN) && event_press(LeftBumber)){
   GhostPeeking =! GhostPeeking;
   button = LeftBumber;
   combo_run(BlockButton);
   if(GhostPeeking == TRUE){combo_run(Notify);a=0;b=2;}
   if(GhostPeeking == FALSE){combo_run(Notify);a=2;b=0;}
   }
   if(GhostPeeking){
      if(get_val(Shoot_BTN)){
         combo_run(GhostPeeking);
      if(event_release(Shoot_BTN)){
         combo_stop(GhostPeeking);
         }
      }
  }
 
}//CREDITS: WuMx
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
combo Notify {
if(RumbleNotify){set_rumble(RUMBLE_B,65);}
set_led(LED_1,0);
set_led(LED_2,a);
set_led(LED_3,b);
set_led(LED_4,0);
wait(250);
set_led(LED_1,0);
set_led(LED_2,0);
set_led(LED_3,0);
set_led(LED_4,0);
wait(250);
set_led(LED_1,0);
set_led(LED_2,a);
set_led(LED_3,b);
set_led(LED_4,0);
wait(250);
set_led(LED_1,0);
set_led(LED_2,0);
set_led(LED_3,0);
set_led(LED_4,0);
wait(250);
set_led(LED_1,0);
set_led(LED_2,a);
set_led(LED_3,b);
set_led(LED_4,0);
wait(250);
reset_leds();
}
combo RF{
      set_val(Shoot_BTN, 100);
      wait(rfs)
      set_val(Shoot_BTN, 0);
      wait(rfs2);
}
 
 
combo GhostPeeking {
set_val(Shoot_BTN, 0);
set_val(Jump_BTN, 100);
wait(20);
set_val(Shoot_BTN, 0);
wait(80);
set_val(Shoot_BTN, 100);
wait(100);
wait(40);
set_val(Shoot_BTN, 0);
set_val(Melee_BTN, 100);
wait(40);
set_val(Shoot_BTN, 0);
wait(280);
set_val(Shoot_BTN, 0);
}
 
combo BlockButton{
set_val(button,0);
wait(700);
}
 
combo DropShot{
set_val(Melee_BTN,100);
wait(40);
wait(200);
set_val(Melee_BTN,100);
}
 
combo AimBot {
set_val(7, 100);
wait(180);
set_val(7, 0);
wait(15);
}
combo AssY {
     set_val(RY, valueY);
     wait(delayA);
     set_val(RY, valueY*(-1));
     wait(delayA);
}
 
combo AssX {
     wait(2);//33
     set_val(RX, valueX);
     wait(delayA/1.5);
     set_val(RX, valueX*(-1));
     wait(delayA/1.5);
}
 
 
 
combo Antirecoil {
     set_val(RY, antirecoil);     
}
 
//END
 
 
//CREDITS WuMx - Main Dev




But evertime i try to load it up it says


------ GPC: Build started ------
> 1: bestbest.gpc : C:\Users\jorge\Desktop\bestbest.gpc
> ERROR line 26: syntax error near unexpected token 'main'.
Build failed with 1 errors ...




And line 26 looks pretty normal...and the guy wont send me a refund so i need to make it work

Re: hi i need help on this script error code i received

PostPosted: Wed Nov 28, 2018 7:54 pm
by gvargas2194303
here below will be line 26


main {

//
// The main procedure is called before every report is sent to
// console. You can think of this procedure as a loop which only
// ends when the script is unloaded.
//
// TODO: handle/change values of buttons, analog stick and/or sensors
//

}

Re: hi i need help on this script error code i received

PostPosted: Thu Nov 29, 2018 7:25 am
by Prototype
You can only have one "main" section, just remove the others parts.

Re: hi i need help on this script error code i received

PostPosted: Thu Nov 29, 2018 9:36 am
by Scachi
Looks like you got code that doesn't compile without changes to the code for the Titan One. So it looks like it was never tested for the T1.

Modified to compile for the T1, ignore the compile warnings:
Code: Select all
/*
 FORTNITE - BATTLE ROYAL GAMEPACK FOR device / TITAN ONE / TITAN TWO
                             TOGGLE MENU                                                  DESCRIPTION
=========================================================================================================================================================================================================================================
                      |------*/
int In_Game_Sens   = 8;     /*#######|------------------- SENSITIVITY OPTIMIZING! -------------------|
                                                       *\------------------------------------/*
                      |------*/
int AntiRecoil     = TRUE/*#######|--------------------- NO toggle available! --------------------|
                      |------*/
int Aimbot         = TRUE/*#######|------- HOLD "Scope_BTN" and press "UP" for toggle       ------|
                      |------*/
int AimAssist      = TRUE; /*#######|--------------------- NO toggle available!  --------------------|
                      |------*/
int DropShot       = TRUE; /*#######|------- HOLD "Scope_BTN" and press "Reload_BTN" for toggle -------|
                      |------*/
int HairTrigger    = TRUE/*#######|--------------------- NO toggle available! --------------------|
                      |------*/
int RumbleNotify   = TRUE/*#######|--------------------- NO toggle available! --------------------|   
                      |------*/
int ButtonSwap     = FALSE; /*#######|--------------------- NO toggle available! --------------------|
                      |------*/
int InstaSwap      = TRUE/*#######|--------------------- NO toggle available! --------------------|
                      |------*/
int RapidFire       = TRUE; /*#######|------- HOLD "Scope_BIN" and press "RIGHT" for toggle -------|
                      |------*/
int GhostPeeking       = TRUE; /*#######|------- HOLD "Scope_BIN" and press "L1" for toggle -------|
========================================================================================================================================================================================================================================*/

//\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\|
//----------------------------------------------------------------------------------|                                                                         
// VERSION: GAMEPACK V3                                                             |
/////////////////////////////////////////////////////////////////////////////////////
int Scope_BTN;int Shoot_BTN;int LY;int Run_BTN;int Reload_BTN;int Jump_BTN;int UP;int RY;int RIGHT;int RX;
int Crouch_BTN;int RightBumber;int LeftBumber;int Left;int Down;int a;int b;int Melee_BTN; int Switch_BTN;
 
 
 
 
  int  AimBot = TRUE;
 
int rumble_type = RUMBLE_A;
 
 
 
//AimAssist: 
  int valueY             = 12;
  int valueX             = 12;
  int delayA             = 14;
 
  int RF = TRUE;
int rfs =5;
int rfs2 =5;
 
//NoRecoil:
  int antirecoil_sg      = 18;
  int antirecoil_fg      = 20;
  int antirecoil;
 
 
//BlockMod:
  int button;
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
init { //-BUTTON LAYOUT-\\ 
if(get_console() == PIO_PS4){
   Scope_BTN = PS4_L2;
   Shoot_BTN = PS4_R2;
   LY = PS4_LY;
   Run_BTN = PS4_L3;
   Reload_BTN = PS4_SQUARE;
   Jump_BTN = PS4_CROSS;
   UP = PS4_UP;
   RY = PS4_RY;
   RIGHT = PS4_RIGHT;
   RX = PS4_RX;
   RY = PS4_RY;
   Crouch_BTN = PS4_CIRCLE;
   Left = PS4_LEFT;
   Down = PS4_DOWN;
   RightBumber = PS4_R1;
   LeftBumber = PS4_L1;
   Melee_BTN = PS4_R3;
   Switch_BTN = PS4_TRIANGLE;
   }else{
   Switch_BTN = XB1_Y;
   RightBumber = XB1_RB;
   Scope_BTN = XB1_LT;
   Shoot_BTN = XB1_RT;
   LY = XB1_LY;
   Run_BTN = XB1_LS;
   Reload_BTN = XB1_X;
   Jump_BTN = XB1_A;
   UP = XB1_UP;
   RY = XB1_RY;
   RIGHT = XB1_RIGHT;
   RX = XB1_RX;
   RY = XB1_RY;
   Crouch_BTN = XB1_B;
   Left = XB1_LEFT;
   Down = XB1_DOWN;
   LeftBumber = XB1_LB;
   Melee_BTN = XB1_RS;
   }   
 
 
   //NoRecoil - InGameSens Optimizing
   antirecoil_sg = antirecoil_sg*4/In_Game_Sens;
   antirecoil_fg = antirecoil_fg*4/In_Game_Sens;
 
}//CREDITS: WuMx
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
main {
if(ButtonSwap){
   swap (PS4_R2,PS4_R1);
   swap (PS4_L2,PS4_L1)
}
if(HairTrigger){
   if(get_val(Scope_BTN)){set_val(Scope_BTN,100);}
   if(get_val(Shoot_BTN)){set_val(Shoot_BTN,100);}
   }
if(AimAssist){
   if(get_val(Scope_BTN)){
      combo_run(AssY);
      combo_run(AssX);
      }
      if((get_val(RY)) > valueY || (get_val(RY)) < valueY*(-1)){
          combo_stop(AssY);
          }
      if((get_val(RX)) > valueX || (get_val(RX)) < valueX*(-1)){
          combo_stop(AssX);
          }
      }   
 
 
  if(get_val(Scope_BTN) && event_press(RIGHT)){
   RF = ! RF;
   if(RF == TRUE){combo_run(Notify);a=0;b=2;}
   if(RF == FALSE){combo_run(Notify);a=2;b=0;}
 
   }
   if(RF){
    if((get_val(Scope_BTN)) && (get_val(Shoot_BTN)))  {
        combo_run(cRF)
       }
    }
 
 
if(get_val(7) && event_press(13)){
   AimBot =! AimBot;
}
if(AimBot){
   if(get_val(7)> 95){
      combo_run(cAimBot);}
   if(event_release(7)){ combo_stop(cAimBot);
}
}
 
 
 
if(AntiRecoil){
  if(get_val(Shoot_BTN)){combo_run(Antirecoil);}
  if(get_rumble(RUMBLE_A) > 5 && get_rumble(RUMBLE_A) <= 50){antirecoil = antirecoil_sg;}
  if(get_rumble(RUMBLE_A) > 50){antirecoil = antirecoil_fg;}
  if(abs(get_val(RY)) >= antirecoil+ 10){combo_stop(Antirecoil);}
   }
 
if(get_val(Scope_BTN) && event_press(Reload_BTN)){
   button = Reload_BTN;
   combo_run(BlockButton);
   DropShot =! DropShot;
   if(DropShot == TRUE){combo_run(Notify);a=0;b=2;}
   if(DropShot == FALSE){combo_run(Notify);a=2;b=0;}
   }
   if(DropShot){
      if(get_val(Scope_BTN)&&get_val(Shoot_BTN)){combo_run(cDropShot);}
      }     
 
if(get_val(Scope_BTN) && event_press(LeftBumber)){
   GhostPeeking =! GhostPeeking;
   button = LeftBumber;
   combo_run(BlockButton);
   if(GhostPeeking == TRUE){combo_run(Notify);a=0;b=2;}
   if(GhostPeeking == FALSE){combo_run(Notify);a=2;b=0;}
   }
   if(GhostPeeking){
      if(get_val(Shoot_BTN)){
         combo_run(cGhostPeeking);
      if(event_release(Shoot_BTN)){
         combo_stop(cGhostPeeking);
         }
      }
  }
 
}//CREDITS: WuMx
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
combo Notify {
if(RumbleNotify){set_rumble(RUMBLE_B,65);}
set_led(LED_1,0);
set_led(LED_2,a);
set_led(LED_3,b);
set_led(LED_4,0);
wait(250);
set_led(LED_1,0);
set_led(LED_2,0);
set_led(LED_3,0);
set_led(LED_4,0);
wait(250);
set_led(LED_1,0);
set_led(LED_2,a);
set_led(LED_3,b);
set_led(LED_4,0);
wait(250);
set_led(LED_1,0);
set_led(LED_2,0);
set_led(LED_3,0);
set_led(LED_4,0);
wait(250);
set_led(LED_1,0);
set_led(LED_2,a);
set_led(LED_3,b);
set_led(LED_4,0);
wait(250);
reset_leds();
}
combo cRF{
      set_val(Shoot_BTN, 100);
      wait(rfs)
      set_val(Shoot_BTN, 0);
      wait(rfs2);
}
 
 
combo cGhostPeeking {
set_val(Shoot_BTN, 0);
set_val(Jump_BTN, 100);
wait(20);
set_val(Shoot_BTN, 0);
wait(80);
set_val(Shoot_BTN, 100);
wait(100);
wait(40);
set_val(Shoot_BTN, 0);
set_val(Melee_BTN, 100);
wait(40);
set_val(Shoot_BTN, 0);
wait(280);
set_val(Shoot_BTN, 0);
}
 
combo BlockButton{
set_val(button,0);
wait(700);
}
 
combo cDropShot{
set_val(Melee_BTN,100);
wait(40);
wait(200);
set_val(Melee_BTN,100);
}
 
combo cAimBot {
set_val(7, 100);
wait(180);
set_val(7, 0);
wait(15);
}
combo AssY {
     set_val(RY, valueY);
     wait(delayA);
     set_val(RY, valueY*(-1));
     wait(delayA);
}
 
combo AssX {
     wait(2);//33
     set_val(RX, valueX);
     wait(delayA/1.5);
     set_val(RX, valueX*(-1));
     wait(delayA/1.5);
}
 
 
 
combo Antirecoil {
     set_val(RY, antirecoil);     
}
 
//END
 
 
//CREDITS WuMx - Main Dev