Jump to content
Sign in to follow this  
aryx

lbAdd or lnbAddRow

Recommended Posts

Hi,

I wrote a script that uses lbAdd at the momentan, but since it doesn't do it's job as I want it to, i would like to use "lnbAddRow"

part of my Script:

_KillList lbAdd format["%1 %2/%3 (%4 position)",_playerName, _playerKills, _playerDeath,_playerPosition];
_KillList lbSetData [(lbSize _KillList)-1,str(_playerName)];

The script works so far, but soon as I get output it looks like:

Lenorado 3/4 0.394845

Frank 1/3 0.384753

But I would rather want it to look like in a line..

So I tried to use lnbAddRow.

_KillList lnbAddRow [format["%1",_playerName],["%1/%2",_playerKills,_playerDeath],["%1",_playerPosition]];
_KillList lbSetData [(lbSize _KillList)-1,str(_playerName)];

But It doesn't seem to Work at all.

Does anyone have a Idea?

Share this post


Link to post
Share on other sites

wont you need to have the control for the lb/lnb?

like this:

lbAdd [1500, format ["%1",name player]];

lnbAddRow [1500, format ["%1",name player]];

1500 is the control

Share this post


Link to post
Share on other sites

This works:

_KillList lnbAddRow [format["%1",_playerName],["%1/%2",_playerKills,_playerDeath],["%1",_playerPosition]];

but the only Output I get is the _playerName.

I want that all 4 vars will be listed, not just 1.

Share this post


Link to post
Share on other sites

Your missing the format command from our other arrays. lnbAddRow takes an array of strings..

_KillList lnbAddRow [format["%1",_playerName], format["%1/%2",_playerKills,_playerDeath], format["%1",_playerPosition]];

Share this post


Link to post
Share on other sites

Tried that, didn't work.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×