SHARE
TWEET

HowTo scripts.txt

infiSTAR23 Aug 31st, 2015 (edited) 5,101 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. scripts.log:
  2.  
  3. 31.08.2015 07:44:18: JustYou (127.0.0.237:8080) GUIDBLABLA - #49 " 26) == 1)
  4. ||
  5.  
  6. profilenamespace getvariable ["BIS_fnc_init_displayErrors",false]
  7. ) then {
  8. ("BIS_fnc_error" call (uinamespace get"
  9.  
  10.  
  11. so we see it is triggered with #49.
  12. #0 would be not the first but the second line in our scripts.txt. Why? because line 1 is //new2 which is not being taken into count because of the // infront of the line.
  13.  
  14.  
  15. so #49 + 2 -> Line 51. which is this:
  16. 7 isPlayer
  17.  
  18. Triggered because the word d_isplayEr_rors contains "isPlayer"
  19.  
  20.  
  21. to white-list the log entry now you simply select everything from beginning to the end like this
  22.  
  23. " 26) == 1)
  24. ||
  25.  
  26. profilenamespace getvariable ["BIS_fnc_init_displayErrors",false]
  27. ) then {
  28. ("BIS_fnc_error" call (uinamespace get"
  29.  
  30.  
  31.  
  32. replace \r with nothing
  33. http://p.infiSTAR.de/31-08-15_07-50-41.png (there is no space, it is just NOTHING)
  34.  
  35.  
  36. " 26) == 1)
  37. ||
  38.  
  39. profilenamespace getvariable ["BIS_fnc_init_displayErrors",false]
  40. ) then {
  41. ("BIS_fnc_error" call (uinamespace get"
  42.  
  43.  
  44.  
  45. now this is still multiple lines and the exception has to be in one line so we need to replace the existing backslash expression \n with a written out \n
  46. http://p.infiSTAR.de/31-08-15_07-50-24.png
  47.  
  48. " 26) == 1)\n||\n\nprofilenamespace getvariable ["BIS_fnc_init_displayErrors",false]\n) then {\n("BIS_fnc_error" call (uinamespace get"
  49.  
  50.  
  51.  
  52.  
  53.  
  54. since we can not have QUOTATIONS within these QUOTATIONS we need to "backslash" existing ones. But only the normal quotations, not the single ones (normal: ", single: ')
  55.  
  56. " 26) == 1)\n||\n\nprofilenamespace getvariable [\"BIS_fnc_init_displayErrors\",false]\n) then {\n(\"BIS_fnc_error\" call (uinamespace get"
  57.  
  58. You can just select everything within the quotes and replace " with \\" (if you still have http://p.infiSTAR.de/31-08-15_07-55-29.png enabled in your notepad++)
  59.  
  60.  
  61. At the end we just add this new line to our existing line like this:
  62.  
  63. 7 isPlayer !=" 26) == 1)\n||\n\nprofilenamespace getvariable [\"BIS_fnc_init_displayErrors\",false]\n) then {\n(\"BIS_fnc_error\" call (uinamespace get"
  64.  
  65.  
  66. This could have also done inappropriate by just doing it like:
  67. 7 isPlayer !"BIS_fnc_init_displayErrors"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top