ERROR IN SCRIPT NEED HELP!
2 posts
• Page 1 of 1
ERROR IN SCRIPT NEED HELP!
For some odd reason the script isnt working properly, is there a way to fix it? It kept saying undefined token syntax line 89.. something like that. Can you please check it out? I put an atttachment in this, so the link to the gpc is in this post.
- Attachments
-
- warface.gpc
- PLZ FIIIX
- (6.79 KiB) Downloaded 72 times
-
SG12user - Corporal
- Posts: 5
- Joined: Sat Jan 12, 2019 7:08 pm
Re: ERROR IN SCRIPT NEED HELP!
- Code: Select all
/*
= = = = = = = = = = = = = = = = = = =
= /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ =
= /\/\/\ Made By ItzSnack /\/\/\ =
= /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ =
= = = = = = = = = = = = = = = = = = =
================
=== FEATURES ===
================
Aim Assist
Aim Abuse - Hold L2/LT All the way down
Anti Recoil
Auto Run
Rapid Fire
Drop Shot
Hair Trigger
=================
=== Important ===
=============================================================
=== Some features will have to be turned on in the script ===
=============================================================
===================================================================================
=== TOGGLES YOU CAN ACTIVATE ===
===================================================================================
=== Hold L2/LT And Press R3/RS For Rapid Fire ===
=== 1 Rumbles = ON 2 = OFF ===
===================================================================================
=== Hold L2/LT And Press L3/LS For Drop Shot ===
=== 1 Rumbles = ON 2 = OFF ===
===================================================================================
*/
//Layout
define PS = 0;
define SHARE = 1;
define OPTIONS = 2;
define R1 = 3;
define R2 = 4;
define R3 = 5;
define L1 = 6;
define L2 = 7;
define L3 = 8;
define RX = 9;
define RY = 10;
define LX = 11;
define LY = 12;
define UP = 13;
define DOWN = 14;
define LEFT = 15;
define RIGHT = 16;
define TRIANGLE = 17;
define CIRCLE = 18;
define CROSS = 19;
define SQUARE = 20;
define ON = TRUE;
define OFF = FALSE;
//Customize
int R1L1 = OFF; //Change OFF TO ON If you play with flipped triggers
int AB = ON; //Change ON TO OFF If you don't want Aim Abuse
int AS = ON; //Change ON TO OFF If you don't want Aim Assist
int ART = ON; //Change ON TO OFF If you don't want Auto Run
int AT = ON; //Change ON TO OFF If you don't want Anti Recoil
int HRT = ON; //Change ON TO OFF If you don't want Hair Triggers
//Custom Buttons
int CROUCH = CIRCLE; //Your crouch button
//Speed Of Features
int RF_Speed = 40; //Rapid Fire Speed
int DS_Speed = 60; //Drop Shot Speed
/*NOTE:
Higher values = Slower
Lower values = Faster*/
//Anti Recoil
int AR = 16; //Anti Recoil
int Release = 16; //Maximum 10+ Higher than Anti Recoil
//Aim Abuse
int HOLD = 80;
int RELEASE = 12;
//Aim Assist
int AP = 18;
int AM = -18;
int RAP = 12;
int RAM = -12;
int Delay = 20;
int ARelease = 19;
//Toggles
int roblox;
int DS_toggle;
int ARS;
main {
if(R1L1) {
swap(R1,R2);
swap(L1,L2);}
if(AS)
if(get_val(L2)) combo_run(AimAssist);
if(HRT)
deadzone(R2,L2,100,50);
if(ART)
if(get_val(LY) == -100 && get_val(L2) == 0)
set_val(L3,100);
if(AB)
if(get_val(L2)> 90){combo_run(AimAbuse);}
if(event_release(L2)){ combo_stop(AimAbuse);}
if(get_val(L2) && event_press(L3)) {
DS_toggle=!DS_toggle;
if(DS_toggle) combo_run(Flash_ON);
else combo_run(Flash_OFF);}
if(DS_toggle && get_val(R2)) {
combo_run(DropShot);}
if(AT)
if(get_val(L2) && get_val(R2)) { combo_run(AntiRecoil);}
if(abs(get_val(RY)) > Release || abs(get_val(RX)) > Release) {
combo_stop(AntiRecoil);}
if(get_val(L2) && event_press(R3)) {
roblox = !roblox;
if(roblox) combo_run(Flash_ON);
else combo_run(Flash_OFF);}
if(roblox && get_val(R2))
combo_run(RapidFire);}
combo AimAbuse {
set_val(L2, 100);
wait(HOLD);
set_val(L2, 0);
wait(RELEASE);}
combo RapidFire {
set_val(R2,100);
wait(40);
set_val(R2,0);
wait(RF_Speed);}
combo AntiRecoil {
ARS = get_val(RY) + AR;
if(ARS > 100) ARS = 100;
set_val(RY,ARS);}
combo DropShot {
set_val(CROUCH,100);
wait(40);
set_val(CROUCH,0);
wait(DS_Speed);}
combo AimAssist {
set_val(10,a_f(10,RAP));
wait(Delay)
set_val(9,a_f(9,AP));
wait(Delay)
set_val(10,a_f(10,RAM));
wait(Delay)
set_val(9,a_f(9,AM));
wait(Delay)}
combo Flash_ON {
LED(0,0,2,0);
set_rumble(RUMBLE_A,100);
wait(400);
reset_rumble();
reset_leds();}
combo Flash_OFF {
LED(0,2,0,0);
set_rumble(RUMBLE_B,100);
wait(200);
reset_rumble();
LED(0,0,0,0);
wait(100);
set_rumble(RUMBLE_B,100);
LED(0,2,0,0);
wait(200);
reset_rumble();
reset_leds();}
function a_f(p,m) {
if(abs(get_val(p)) < ARelease)
return m;
return get_val(p);
}
function LED(a,b,c,d) {
set_led(LED_1,a);
set_led(LED_2,b);
set_led(LED_3,c);
set_led(LED_4,d);}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
- Mad
- Major General
- Posts: 4533
- Joined: Wed May 22, 2019 5:39 am
2 posts
• Page 1 of 1
Return to GPC1 Script Programming
Who is online
Users browsing this forum: No registered users and 72 guests