# Why i keep getting this error message

**URL:** https://forum.dynare.org/t/why-i-keep-getting-this-error-message/22102
**Category:** Uncategorized
**Created:** [16 March 2023 09:05 UTC](https://forum.dynare.org/t/why-i-keep-getting-this-error-message/22102 "2023-03-16T09:05:13Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![spiffytharapper](https://forum.dynare.org/letter_avatar_proxy/v4/letter/s/22d042/32.png) [@spiffytharapper](https://forum.dynare.org/u/spiffytharapper)
#### Post date: [16 March 2023 09:05 UTC](https://forum.dynare.org/t/why-i-keep-getting-this-error-message/22102/1 "2023-03-16T09:05:14Z")

</div>

gta 5 hss.gpc  
ERROR: Syntax error, unexpected NAME (‘PS4\_L2’) on line 12 column 4

{// GPC script for headshot mod in GTA V  
// By [Your Name]

// Set the button layout  
int PS4\_L2 = 7;  
int PS4\_R2 = 8;  
int PS4\_R3 = 10;  
int PS4\_OPTIONS = 9;  
int PS4\_RX, PS4\_RY; // Added variable declarations

// Set the sensitivity multiplier  
float SENS\_MULTIPLIER = 2.0; // Changed the data type to “float”

// Define the main function  
main {  
// Check if the right thumbstick is pressed down  
if(get\_val(PS4\_R3)) {  
// Multiply the sensitivity of the right thumbstick by the multiplier  
set\_val(PS4\_RX, get\_val(PS4\_RX) \* SENS\_MULTIPLIER);  
set\_val(PS4\_RY, get\_val(PS4\_RY) \* SENS\_MULTIPLIER);  
}

```
// Check if the options button is pressed down
if(event_press(PS4_OPTIONS)) {
    // Toggle the headshot mod on and off
    combo_run(headshot_mod);
}

```

}

// Define the headshot\_mod combo  
combo headshot\_mod {  
// Press the left trigger to aim down sights  
set\_val(PS4\_L2, 100);

```
// Wait for a short period of time
wait(100);

// Press the right trigger to shoot
set_val(PS4_R2, 100);

// Wait for a short period of time
wait(100);

// Release the right trigger
set_val(PS4_R2, 0);

// Release the left trigger
set_val(PS4_L2, 0);

```

}

```
//
// 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
//

```

}

---

<div class="post-metadata">

### Author: ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)
#### Post date: [16 March 2023 13:16 UTC](https://forum.dynare.org/t/why-i-keep-getting-this-error-message/22102/2 "2023-03-16T13:16:06Z")

</div>

This forum is for Dynare, a program to solve DSGE models used in economics.
