Sign in to follow this  
Followers 0
sushini

Restriction #41 Reparing Veicules

8 posts in this topic

Hi, im getting kicked when i try repair cars

this is the log:

 

#41 "xile_Item_DuctTape" in _equippedMagazines) then
{
_vehicle setDamage 0;
player removeMagazineGlobal "Exile_Item_DuctTape";

 

an someone do me the fix?

Share this post


Link to post
Share on other sites
Advertisement

add this to your script.txt on line 43

!="xile_Item_DuctTape\" in _equippedMagazines) then\n{\n_vehicle setDamage 0;\nplayer removeMagazineGlobal \"Exile_Item_DuctTape\";\n}\nels"

Share this post


Link to post
Share on other sites

Hi, im getting kicked when i try repair cars

this is the log:

 

#41 "xile_Item_DuctTape" in _equippedMagazines) then
{
_vehicle setDamage 0;
player removeMagazineGlobal "Exile_Item_DuctTape";

 

an someone do me the fix?

The answer is very simple! Look at line 43 (\...yourserver....\battleye\scripts.txt) and replace

!="_vehicle setDamage 0;player removeMagazine \"Exile_Item_DuctTape\";"

with

!="_vehicle setDamage 0;\nplayer removeItem \"Exile_Item_DuctTape\";"
Edited by dive4fun

Share this post


Link to post
Share on other sites

I've done the corrections as above but I'm still having the kicked script #41 when repairing vehicles. This is how it looks at the moment, please help 

 

7 setDamage !="player setdamage 1" !="player setDamage (1 - (ExileClientPlayerAttributes select 0) / 100);" !="_vehicle setDamage 0;\nplayer removeItem \"Exile_Item_DuctTape\";" !="xile_Item_DuctTape\" in _equippedMagazines) then\n{\n_vehicle setDamage 0;\nplayer removeMagazineGlobal \"Exile_Item_DuctTape\";\n}\nels" \n{\n[" !="ns.sqf\"\nif (isServer) then {\n_col = _this select 0;\n{\n{\n_x setDamage 1;\n} forEach (_col nearObjects _x);\n} forEach (getArray (co"

 

Share this post


Link to post
Share on other sites

Looks like it was missing a set of quotes. Same as before try adding the following to the end of line 43 with a space between every entry.

!=""xile_Item_DuctTape" in _equippedMagazines) then\n{\n_vehicle setDamage 0;\nplayer removeMagazineGlobal "Exile_Item_DuctTape";"

 

Share this post


Link to post
Share on other sites

Are you sure the "xile_Item_DuctTape" shouldn't just be "Exile_Item_DuctTape"? That looks like a typo.

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.