Answered Syntax Error mod menu

koekjes_boy

Known Member
Messages
25
Reaction score
13
Points
118
if i try to use a filelocation in my script
example:
Code:
self scripts/mp/killstreaks/_uav::AddActiveUAV()

it gives an syntax error when i compile it

This error
syntax error, unexpected TOKEN_FILENAME : self scripts\mp\killstreaks\_uav

pls help me
 

Harry

Certified Sick ℂunt
Premium Member
Messages
1,263
Reaction score
968
Points
973
might need 2 include ur dank filename there m8
 

CabCon

Head Administrator
Staff member
Head Staff Team
Messages
4,872
Reaction score
2,882
Points
1,053
if i try to use a filelocation in my script
example:
Code:
self scripts/mp/killstreaks/_uav::AddActiveUAV()

it gives an syntax error when i compile it

This error
syntax error, unexpected TOKEN_FILENAME : self scripts\mp\killstreaks\_uav

pls help me
This isn't possible like this in Call of Duty: Black Ops 3. You need to include the file first and use the namespace to call a function from the file.
Here you go:
Code:
//insert this:
#using scripts\mp\killstreaks\_uav;

//use this in the function:
self uav::AddActiveUAV();

Question answered.
 
Top