Jump to content
  • 0

What the hell is wrong with this code ?


Sandbird

Question

I've been busting my head on the wall for the past 2h for this simple error in my custom debug monitor:

File mpmissions\__CUR_MP.Chernarus\dayz_code\custom\playerstats.sqf, line 13
Error in expression <nity",0];
_zombies =    count (entities "zZombie_Base");
_zombiesA =   {alive _x>
  Error position: <"zZombie_Base");
_zombiesA =   {alive _x>
  Error Missing )

I dont get it.....whats wrong with my line ? It looks fine to me....i got blurantihack installed in the server...is it messing it up ?

 

Line 12,13,14

_humanity =   player getVariable["humanity",0];
_zombies =    count (entities "zZombie_Base");
_zombiesA =   {alive _x} count (entities "zZombie_Base");
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

The thing is blurantihack has its own debug monitor (for players) BUT it wont allow images to show there (my clan logo image) cause its in the server files. So in order to inlcude the logo i wrote this in the server file :

<t align='center'><img size='3' image='custom\grof.paa'/></t><br/>

which works for clients since the paa is there in the client file..BUT, i noticed they get their logs spamed just like that, so i re-enabled the default playerstats.sqf and copy/pasted the blurantihack debug there and the spamming stoped for them but started for me (cause i am an admin and i am allowed to see the normal playerstats.sqf from the client files)

The error message is the one above.

 

If i was able to display a paa from the server files i wouldnt go to all this trouble and just disable the client debug alltogether.

Link to comment
Share on other sites

  • 0

so what does it matter if its in the serverfiles?

put your logo in the missionfile... and link it in the antihack code... shouldnt be a problem...!!?

 

Putting

<t align='center'><img size='3' image='custom\grof.paa'/></t><br/>

in the server file causes either a problem to clients or me as an admiin (cant remember who gets an error message about the image not found.

Because i allow admins to have a custom debug monitor running from the client files, while players get the custom antihack debug monitor this messes up with either one clients and brings errors in logs.

I cant quite explain what is the problem, cause its weird. For admins it says it cant find the file, but when i add a \custom\grof.paa in the server files the error stops for admins but comes up for players.

Its a mess really.

The only thing i was able to do to make it stop was to enable playerstats.sqf for everyone in the client files, but since blur is running its not allowing people when they press INS to show the playerstats.sqf but it loads the blur debug (i changed DEL to INS there).

But then i get this error like i said in my first post about the zombie_base. But thats about it. If i remove the zombie stats from the playerstats.sqf...then no errors both from clients and admins....but i want to show the zombies for both users.

Link to comment
Share on other sites

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
  • Advertisement
  • Discord

×
×
  • Create New...