[FilterScript] [FS] Fallout's Improved Player Info. (console command)
#7

Quote:

if(PlayerName_Length == 3) { Tab_PlayerName_Length = " "; }
if(PlayerName_Length == 4) { Tab_PlayerName_Length = " "; }
if(PlayerName_Length == 5) { Tab_PlayerName_Length = " "; }
if(PlayerName_Length == 6) { Tab_PlayerName_Length = " "; }
etc etc..



Why don't you just use %Xs (where X is a number..)

Ex:
pawn Code:
printf( "%10s test", "First" );
printf( "%10s test", "Second" );
==
Code:
First  test
Second  test
Another example here.

Edit: also why do you use printf, like here,
pawn Code:
printf("ID: Name:       IP:        Ping: RCON: Vehicle:    State:");
when it's unneeded as you format nothing
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)