Sign in to follow this  
Followers 0
Diddl3s

Help Please: Dynamic Text (Switch needed ?)

5 posts in this topic

I am very confused with this and have tried many ways to get it working. I'm positive that the fix is going to be something pretty simple.

In the following code, using else , only the first two statements work when I call them in game.

For example: In the code below.. the 3rd and 4th <Some Text here...........!> do not come up ingame...

Spoiler

if (ExileClientPlayerScore >0 && ExileClientPlayerScore <99) then {
    titleText ["", "PLAIN DOWN"];
   ['Some Text here...........!',0,0.6,2,0] spawn bis_fnc_dynamictext;
    }

else {
 
    if (ExileClientPlayerScore >100&& ExileClientPlayerScore <199) then {
    titleText ["", "PLAIN DOWN"];
   ['Some Text here...........!',0,0.6,2,0] spawn bis_fnc_dynamictext;
    }

else {

    if (ExileClientPlayerScore >200&& ExileClientPlayerScore <299) then {
   ['Some Text here...........!',0,0.6,2,0] spawn bis_fnc_dynamictext;
    }
    
else {

    if (ExileClientPlayerScore >300&& ExileClientPlayerScore <399) then {
   ['Some Text here...........!',0,0.6,2,0] spawn bis_fnc_dynamictext;
    }

 

I can't quiet understand the Switch: https://community.bistudio.com/wiki/switch_do

 

Please help me to get his working if you can... I really appreciate it!

Share this post


Link to post
Share on other sites
Advertisement

That didn't make a difference, just tested it.

It doesn't call any of them with so many else

Are you sure it is possible to have some many of the else ?

Edited by Diddl3s

Share this post


Link to post
Share on other sites

if (ExileClientPlayerScore >0 && ExileClientPlayerScore <99) then {
    titleText ["", "PLAIN DOWN"];
   ['Some Text here...........!',0,0.6,2,0] spawn bis_fnc_dynamictext;
};

if (ExileClientPlayerScore >100&& ExileClientPlayerScore <199) then {
    titleText ["", "PLAIN DOWN"];
   ['Some Text here...........!',0,0.6,2,0] spawn bis_fnc_dynamictext;
};

if (ExileClientPlayerScore >200&& ExileClientPlayerScore <299) then {
   ['Some Text here...........!',0,0.6,2,0] spawn bis_fnc_dynamictext;
};

if (ExileClientPlayerScore >300&& ExileClientPlayerScore <399) then {
   ['Some Text here...........!',0,0.6,2,0] spawn bis_fnc_dynamictext;
};

1 person likes this

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.