Kovacs

Annoying Intro Error

2 posts in this topic

Hey guys, 

i´ve a rly annoying error :

12:16:51   Error Undefined variable in expression: exileclientplayerisspawned
12:16:51 File mpmissions\__cur_mp.Altis\intro\intro.sqf, line 34
12:16:52 Error in expression <;
playsound "intro";
waitUntil{sleep 1; ExileClientPlayerIsSpawned}; 
sleep _Del>
12:16:52   Error position: <ExileClientPlayerIsSpawned}; 
sleep _Del>

 

 

AAAAnd here is the Script:

Quote
  1. //    =====
  2. //    SCRIPT NAME: Server Intro Credits Script by Knutpower & ICEMAN
  3. //    SCRIPT VERSION: v1.3.7 BETA
  4. //    Credits for original script: Bohemia Interactive http://bistudio.com
  5. //    ========== SCRIPT CONFIG ============
  6. _onScreenTime = 10;         //how long one role should stay on screen. Use value from 0 to 10 where 0 is almost instant transition to next role 
  7.     //NOTE: Above value is not in seconds. It is percentage. Default: 6
  8. //    ==== CUSTOMIZING THE CREDITS ===
  9. //    If you want more or less credits on the screen, you have to add/remove roles.
  10. //    Watch out though, you need to make sure BOTH role lists match eachother in terms of amount.
  11. //    Just take a good look at the _role1 and the rest and you will see what I mean.
  12. //    == CUSTOMIZING TEXT COLOR ==
  13. //    Find line 49 and look for: color='#f2cb0b'
  14. //  #f2cb0b is the HTML color code for the text. As well as #FFFFFF in the row below it.
  15. //    Find the color code you want here: http://html-color-codes.info
  16. //    =====
  17. //    ==== SCRIPT START ====
  18. sleep 10; //Wait in seconds before the credits start after player IS ingame
  19. _role1 = "DBS - DEUTSCHLANDS BESTER SERVER";
  20. _role1names = ["Herzlich Willkommen"];
  21. _role2 = "Admin";
  22. _role2names = ["Peter Aeffchen"];
  23. _role3 = "Supporter";
  24. _role3names = ["Betukey"];
  25. _role4 = "Regeln";
  26. _role4names = ["Die Regeln findet ihr in eurem XM8"];
  27. _role5 = "INFO";
  28. _role5names = ["BERGHEIN ist nichts für Anfänger"];
  29. _role6 = "SERVER RESTART";
  30. _role6names = ["0 UHR, 6 UHR, 12 UHR, 18 UHR!!!"];
  31. _role7 = "Viel Spass";
  32. _role7names = ["In einer Welt wo dir jeder ans Leder will!!!"];
  33. playsound "intro";
  34. waitUntil{sleep 1; ExileClientPlayerIsSpawned}; 
  35. sleep _Delay;
  36. if (_IntroMusic) then { playMusic "intro.ogg";};
  37. {
  38.     sleep 2;
  39.     _memberFunction = _x select 0;
  40.     _memberNames = _x select 1;
  41.     _finalText = format ["<t size='1.50' color='#00CDFF' align='right'>%1<br /></t>", _memberFunction];
  42.     _finalText = _finalText + "<t size='0.80' color='#FFFF00' align='right'>";
  43.     {_finalText = _finalText + format ["%1<br />", _x]} forEach _memberNames;
  44.     _finalText = _finalText + "</t>";
  45.     _onScreenTime + (((count _memberNames) - 1) * 0.5);
  46.     [
  47.         _finalText,
  48.         [safezoneX + safezoneW - 0.8,0.50],    //DEFAULT: 0.5,0.35
  49.         [safezoneY + safezoneH - 0.8,0.7],     //DEFAULT: 0.8,0.7
  50.         _onScreenTime,
  51.         0.5
  52.     ] spawn BIS_fnc_dynamicText;
  53.     sleep (_onScreenTime);
  54. } forEach [
  55.     //The list below should have exactly the same amount of roles as the list above
  56.     [_role1, _role1names],
  57.     [_role2, _role2names],
  58.     [_role3, _role3names],                 
  59.     [_role4, _role4names], 
  60.     [_role5, _role5names],         
  61.     [_role6, _role6names],  
  62.     [_role7, _role7names]              //make SURE the last one here does NOT have a , at the end
  63. ];

Can´t find the solution. Pls Help......

Share this post


Link to post
Share on other sites

You don't have  _Delay defined anywhere prior to being called.

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

  • Recently Browsing   0 members

    No registered users viewing this page.